Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.cpp
Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | class LockImpl : public Chain::Lock, public UniqueLock<RecursiveMutex> { | ||||
if (CBlockIndex *fork = | if (CBlockIndex *fork = | ||||
FindForkInGlobalIndex(::ChainActive(), locator)) { | FindForkInGlobalIndex(::ChainActive(), locator)) { | ||||
return fork->nHeight; | return fork->nHeight; | ||||
} | } | ||||
return nullopt; | return nullopt; | ||||
} | } | ||||
bool contextualCheckTransactionForCurrentBlock( | bool contextualCheckTransactionForCurrentBlock( | ||||
const Consensus::Params ¶ms, const CTransaction &tx, | const Consensus::Params ¶ms, const CTransaction &tx, | ||||
CValidationState &state) override { | TxValidationState &state) override { | ||||
LockAssertion lock(::cs_main); | LockAssertion lock(::cs_main); | ||||
return ContextualCheckTransactionForCurrentBlock(params, tx, state); | return ContextualCheckTransactionForCurrentBlock(params, tx, state); | ||||
} | } | ||||
using UniqueLock::UniqueLock; | using UniqueLock::UniqueLock; | ||||
}; // namespace interfaces | }; // namespace interfaces | ||||
class NotificationsProxy : public CValidationInterface { | class NotificationsProxy : public CValidationInterface { | ||||
▲ Show 20 Lines • Show All 267 Lines • Show Last 20 Lines |