diff options
author | Jon Atack <jon@atack.com> | 2022-05-03 22:20:06 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2022-05-03 22:20:31 +0200 |
commit | 4cb9d214345550cb0299139b2badb73ba1e53532 (patch) | |
tree | 29c44667412fe93351758d3e01ff8d00d0995327 /src/node/blockstorage.h | |
parent | 12455acca2c3adf5c88ae9c1a02a7c192fe0f53b (diff) | |
download | bitcoin-4cb9d214345550cb0299139b2badb73ba1e53532.tar.xz |
blockstorage: add LIFETIMEBOUND to GetFirstStoredBlock()::start_time
See PR 22278 for discussion.
Co-authored-by: MarcoFalke <falke.marco@gmail.com>
Diffstat (limited to 'src/node/blockstorage.h')
-rw-r--r-- | src/node/blockstorage.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node/blockstorage.h b/src/node/blockstorage.h index c0fd70e524..488713dbd8 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 <attributes.h> #include <chain.h> #include <fs.h> -#include <protocol.h> // For CMessageHeader::MessageStartChars +#include <protocol.h> #include <sync.h> #include <txdb.h> @@ -179,7 +180,7 @@ public: 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; |