Add wrapper for adding entries to a chainstate's block index candidates

This commit is contained in:
Suhas Daftuar
2023-06-06 09:10:10 -04:00
parent 471da5f6e7
commit 10c05710ce
2 changed files with 12 additions and 3 deletions

View File

@@ -727,6 +727,8 @@ public:
/** Ensures we have a genesis block in the block tree, possibly writing one to disk. */
bool LoadGenesisBlock();
void TryAddBlockIndexCandidate(CBlockIndex* pindex) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
void PruneBlockIndexCandidates();
void ClearBlockIndexCandidates() EXCLUSIVE_LOCKS_REQUIRED(::cs_main);