diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2021-04-18 16:48:52 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2022-04-25 23:18:01 +0200 |
commit | 231fc7b035481f748159968353c1cab81354e843 (patch) | |
tree | 4b04c9911342bd54b070a567c9eda6dec9a1efc0 /src/node/blockstorage.h | |
parent | 1e7db37e76c510d373c4404eea2b97508b367aca (diff) |
refactor: Introduce GetFirstStoredBlock helper function
Diffstat (limited to 'src/node/blockstorage.h')
-rw-r--r-- | src/node/blockstorage.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node/blockstorage.h b/src/node/blockstorage.h index 11445aa22e..229c099f1f 100644 --- a/src/node/blockstorage.h +++ b/src/node/blockstorage.h @@ -181,6 +181,9 @@ public: } }; +//! Find the first block that is not pruned +const CBlockIndex* GetFirstStoredBlock(const CBlockIndex* start_block) EXCLUSIVE_LOCKS_REQUIRED(::cs_main); + void CleanupBlockRevFiles(); /** Open a block file (blk?????.dat) */ |