mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-03 01:33:20 +02:00
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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user