diff options
author | Carl Dong <contact@carldong.me> | 2020-12-24 16:18:46 -0500 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-04-19 14:34:55 -0400 |
commit | 0d567daf23c9fcb2d95b38913ee45a8b0ba3b027 (patch) | |
tree | 42b303f528ebc5b426bcbc614afce1a9b892a357 /src/node/blockstorage.h | |
parent | 5d670173a32ccdcb25d3a6bf97317f0ac774e0ed (diff) | |
download | bitcoin-0d567daf23c9fcb2d95b38913ee45a8b0ba3b027.tar.xz |
move-mostly: Make pindexBestHeader a ChainMan member
[META] In the next commit, we move the clearing of pindexBestHeader to
ChainstateManager::Unload()
Diffstat (limited to 'src/node/blockstorage.h')
-rw-r--r-- | src/node/blockstorage.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/blockstorage.h b/src/node/blockstorage.h index a051e90808..3a95e321f7 100644 --- a/src/node/blockstorage.h +++ b/src/node/blockstorage.h @@ -147,7 +147,7 @@ public: /** Clear all data members. */ void Unload() EXCLUSIVE_LOCKS_REQUIRED(cs_main); - CBlockIndex* AddToBlockIndex(const CBlockHeader& block) EXCLUSIVE_LOCKS_REQUIRED(cs_main); + CBlockIndex* AddToBlockIndex(const CBlockHeader& block, CBlockIndex*& best_header) EXCLUSIVE_LOCKS_REQUIRED(cs_main); /** Create a new block index entry for a given block hash */ CBlockIndex* InsertBlockIndex(const uint256& hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main); |