Skip to content

Commit 4cb9d21

Browse files
jonatackMarcoFalke
and
MarcoFalke
committed
blockstorage: add LIFETIMEBOUND to GetFirstStoredBlock()::start_time
See PR 22278 for discussion. Co-authored-by: MarcoFalke <[email protected]>
1 parent 12455ac commit 4cb9d21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/node/blockstorage.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
#ifndef BITCOIN_NODE_BLOCKSTORAGE_H
66
#define BITCOIN_NODE_BLOCKSTORAGE_H
77

8+
#include <attributes.h>
89
#include <chain.h>
910
#include <fs.h>
10-
#include <protocol.h> // For CMessageHeader::MessageStartChars
11+
#include <protocol.h>
1112
#include <sync.h>
1213
#include <txdb.h>
1314

@@ -179,7 +180,7 @@ class BlockManager
179180
const CBlockIndex* GetLastCheckpoint(const CCheckpointData& data) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
180181

181182
//! Find the first block that is not pruned
182-
const CBlockIndex* GetFirstStoredBlock(const CBlockIndex& start_block) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
183+
const CBlockIndex* GetFirstStoredBlock(const CBlockIndex& start_block LIFETIMEBOUND) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
183184

184185
/** True if any block files have ever been pruned. */
185186
bool m_have_pruned = false;

0 commit comments

Comments
 (0)