Skip to content

Commit fa7e6c5

Browse files
author
MarcoFalke
committed
Add LIFETIMEBOUND to InitializeChainstate
1 parent fa5c896 commit fa7e6c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ class ChainstateManager
929929
CChainState& InitializeChainstate(
930930
CTxMemPool* mempool,
931931
const std::optional<uint256>& snapshot_blockhash = std::nullopt)
932-
EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
932+
LIFETIMEBOUND EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
933933

934934
//! Get all chainstates currently being used.
935935
std::vector<CChainState*> GetAll();

0 commit comments

Comments
 (0)