refactor: add missing LIFETIMEBOUND annotation for parameter

The BlockManager::GetFirstBlock lower_block parameter can have its lifetime
extended by the return parameter. In the case where lower_block is returned,
its lifetime will be bound to the return value. A LIFETIMEBOUND annotation is
appropriate here.
This commit is contained in:
Andrew Toth
2025-11-13 09:40:45 -05:00
parent 141117f5e8
commit f743e6c5dd

View File

@@ -429,7 +429,7 @@ public:
const CBlockIndex* GetFirstBlock(
const CBlockIndex& upper_block LIFETIMEBOUND,
uint32_t status_mask,
const CBlockIndex* lower_block = nullptr
const CBlockIndex* lower_block LIFETIMEBOUND = nullptr
) const EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
/** True if any block files have ever been pruned. */