From 02320032c7c779a04a8e7347b48af368a56a32cf Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com> Date: Tue, 3 May 2022 22:20:06 +0200 Subject: [PATCH] merge bitcoin#25060: add LIFETIMEBOUND to GetFirstStoredBlock()::start_time --- src/node/blockstorage.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/node/blockstorage.h b/src/node/blockstorage.h index 54b09808b0cf7..5b7468e79c24b 100644 --- a/src/node/blockstorage.h +++ b/src/node/blockstorage.h @@ -5,9 +5,10 @@ #ifndef BITCOIN_NODE_BLOCKSTORAGE_H #define BITCOIN_NODE_BLOCKSTORAGE_H +#include #include #include -#include // For CMessageHeader::MessageStartChars +#include #include #include @@ -197,7 +198,7 @@ class BlockManager const CBlockIndex* GetLastCheckpoint(const CCheckpointData& data) EXCLUSIVE_LOCKS_REQUIRED(cs_main); //! Find the first block that is not pruned - const CBlockIndex* GetFirstStoredBlock(const CBlockIndex& start_block) EXCLUSIVE_LOCKS_REQUIRED(::cs_main); + const CBlockIndex* GetFirstStoredBlock(const CBlockIndex& start_block LIFETIMEBOUND) EXCLUSIVE_LOCKS_REQUIRED(::cs_main); /** True if any block files have ever been pruned. */ bool m_have_pruned = false;