mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
wallet: Use chain.lock() instead of temporary chain.assumeLocked()
This commit is contained in:
parent
9d266dbdec
commit
593a8e8a2c
1 changed files with 1 additions and 1 deletions
|
|
@ -4074,7 +4074,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain,
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto locked_chain = chain.assumeLocked(); // Temporary. Removed in upcoming lock cleanup
|
auto locked_chain = chain.lock();
|
||||||
walletInstance->ChainStateFlushed(locked_chain->getTipLocator());
|
walletInstance->ChainStateFlushed(locked_chain->getTipLocator());
|
||||||
} else if (wallet_creation_flags & WALLET_FLAG_DISABLE_PRIVATE_KEYS) {
|
} else if (wallet_creation_flags & WALLET_FLAG_DISABLE_PRIVATE_KEYS) {
|
||||||
// Make it impossible to disable private keys after creation
|
// Make it impossible to disable private keys after creation
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue