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:
1 file changed
+1
-1
@@ -429,7 +429,7 @@ public:
|
|||||||
const CBlockIndex* GetFirstBlock(
|
const CBlockIndex* GetFirstBlock(
|
||||||
const CBlockIndex& upper_block LIFETIMEBOUND,
|
const CBlockIndex& upper_block LIFETIMEBOUND,
|
||||||
uint32_t status_mask,
|
uint32_t status_mask,
|
||||||
const CBlockIndex* lower_block = nullptr
|
const CBlockIndex* lower_block LIFETIMEBOUND = nullptr
|
||||||
) const EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
|
) const EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
|
||||||
|
|
||||||
/** True if any block files have ever been pruned. */
|
/** True if any block files have ever been pruned. */
|
||||||
|
|||||||
Reference in new issue
Block a user