mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
blockstorage, refactor: make GetFirstStoredBlock() a member of BlockManager
instead of a global
This commit is contained in:
parent
dabec99013
commit
ed12c0a49d
4 changed files with 8 additions and 7 deletions
|
|
@ -390,7 +390,8 @@ bool BlockManager::IsBlockPruned(const CBlockIndex* pblockindex)
|
|||
return (m_have_pruned && !(pblockindex->nStatus & BLOCK_HAVE_DATA) && pblockindex->nTx > 0);
|
||||
}
|
||||
|
||||
const CBlockIndex* GetFirstStoredBlock(const CBlockIndex* start_block) {
|
||||
const CBlockIndex* BlockManager::GetFirstStoredBlock(const CBlockIndex* start_block)
|
||||
{
|
||||
AssertLockHeld(::cs_main);
|
||||
assert(start_block);
|
||||
const CBlockIndex* last_block = start_block;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue