From f743e6c5dd386b7535e6c9442923a6ee54341994 Mon Sep 17 00:00:00 2001 From: Andrew Toth Date: Thu, 13 Nov 2025 09:40:45 -0500 Subject: [PATCH] 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. --- src/node/blockstorage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/blockstorage.h b/src/node/blockstorage.h index 9a6199193e2..4ee75f071ce 100644 --- a/src/node/blockstorage.h +++ b/src/node/blockstorage.h @@ -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. */