mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-13 08:58:52 +00:00
wallet: Write best block record on unload
This commit is contained in:
parent
876a2585a8
commit
b44b7c03fe
@ -164,6 +164,7 @@ bool RemoveWallet(WalletContext& context, const std::shared_ptr<CWallet>& wallet
|
||||
|
||||
interfaces::Chain& chain = wallet->chain();
|
||||
std::string name = wallet->GetName();
|
||||
WITH_LOCK(wallet->cs_wallet, wallet->WriteBestBlock());
|
||||
|
||||
// Unregister with the validation interface which also drops shared pointers.
|
||||
wallet->m_chain_notifications_handler.reset();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user