aboutsummaryrefslogtreecommitdiff
path: root/src/node/blockstorage.h
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2022-03-15 19:28:46 -0400
committerCarl Dong <contact@carldong.me>2022-03-15 19:42:43 -0400
commitf865cf8ded2b2fbc82a6fbc41226d991909a6880 (patch)
tree1f8a540512d05671c936cbe58cfb1f3b0a3c19dd /src/node/blockstorage.h
parent28ba0313eac37e4a900b7e97af7169ce999c4024 (diff)
downloadbitcoin-f865cf8ded2b2fbc82a6fbc41226d991909a6880.tar.xz
Add and use BlockManager::GetAllBlockIndices
Diffstat (limited to 'src/node/blockstorage.h')
-rw-r--r--src/node/blockstorage.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node/blockstorage.h b/src/node/blockstorage.h
index 0fd87ddaf1..a051e90808 100644
--- a/src/node/blockstorage.h
+++ b/src/node/blockstorage.h
@@ -123,6 +123,8 @@ private:
public:
BlockMap m_block_index GUARDED_BY(cs_main);
+ std::vector<CBlockIndex*> GetAllBlockIndices() EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
+
/**
* All pairs A->B, where A (or one of its ancestors) misses transactions, but B has transactions.
* Pruned nodes may have entries where B is missing data.