Skip to content

Commit 593a8e8

Browse files
wallet: Use chain.lock() instead of temporary chain.assumeLocked()
1 parent 9d266db commit 593a8e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4074,7 +4074,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain,
40744074
return nullptr;
40754075
}
40764076

4077-
auto locked_chain = chain.assumeLocked(); // Temporary. Removed in upcoming lock cleanup
4077+
auto locked_chain = chain.lock();
40784078
walletInstance->ChainStateFlushed(locked_chain->getTipLocator());
40794079
} else if (wallet_creation_flags & WALLET_FLAG_DISABLE_PRIVATE_KEYS) {
40804080
// Make it impossible to disable private keys after creation

0 commit comments

Comments
 (0)