mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-10 06:39:15 +02:00
refactor: remove incorrect LIFETIMEBOUND annotations
The return value of CheckBlockDataAvailability does not extend the lifetime of the input parameters, nor does BlockManager instance retain references to the parameters. The LIFETIMEBOUND annotations are misleading here since the lifetime of the parameters are not extended past the method call.
This commit is contained in:
@@ -402,7 +402,7 @@ public:
|
||||
//! Check if all blocks in the [upper_block, lower_block] range have data available.
|
||||
//! The caller is responsible for ensuring that lower_block is an ancestor of upper_block
|
||||
//! (part of the same chain).
|
||||
bool CheckBlockDataAvailability(const CBlockIndex& upper_block LIFETIMEBOUND, const CBlockIndex& lower_block LIFETIMEBOUND) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
|
||||
bool CheckBlockDataAvailability(const CBlockIndex& upper_block, const CBlockIndex& lower_block) EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
|
||||
|
||||
/**
|
||||
* @brief Returns the earliest block with specified `status_mask` flags set after
|
||||
|
||||
Reference in New Issue
Block a user