Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 229 Lines • ▼ Show 20 Lines | void ReceivedBlockTransactions(const CBlock &block, CBlockIndex *pindexNew, | ||||
const FlatFilePos &pos) | const FlatFilePos &pos) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
bool RollforwardBlock(const CBlockIndex *pindex, CCoinsViewCache &inputs, | bool RollforwardBlock(const CBlockIndex *pindex, CCoinsViewCache &inputs, | ||||
const Consensus::Params ¶ms) | const Consensus::Params ¶ms) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
} g_chainstate; | } g_chainstate; | ||||
CChain &ChainActive() { | |||||
return g_chainstate.m_chain; | |||||
} | |||||
/** | /** | ||||
* Global state | * Global state | ||||
* | * | ||||
* Mutex to guard access to validation specific variables, such as reading | * Mutex to guard access to validation specific variables, such as reading | ||||
* or changing the chainstate. | * or changing the chainstate. | ||||
* | * | ||||
* This may also need to be locked when updating the transaction pool, e.g. on | * This may also need to be locked when updating the transaction pool, e.g. on | ||||
* AcceptToMemoryPool. See CTxMemPool::cs comment for details. | * AcceptToMemoryPool. See CTxMemPool::cs comment for details. | ||||
▲ Show 20 Lines • Show All 5,655 Lines • Show Last 20 Lines |