diff options
| author | practicalswift <[email protected]> | 2019-05-16 21:42:34 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2019-05-16 21:42:34 +0200 |
| commit | 593a8e8a2ce177c41a7809479c0086ae0fee4b4e (patch) | |
| tree | a7781c4e009507d66f367e6b074db577e0afaf00 /src | |
| parent | Merge #15943: tests: Fail if RPC has been added without tests (diff) | |
| download | discoin-593a8e8a2ce177c41a7809479c0086ae0fee4b4e.tar.xz discoin-593a8e8a2ce177c41a7809479c0086ae0fee4b4e.zip | |
wallet: Use chain.lock() instead of temporary chain.assumeLocked()
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 054329fbd..0822c7c30 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -4074,7 +4074,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain, return nullptr; } - auto locked_chain = chain.assumeLocked(); // Temporary. Removed in upcoming lock cleanup + auto locked_chain = chain.lock(); walletInstance->ChainStateFlushed(locked_chain->getTipLocator()); } else if (wallet_creation_flags & WALLET_FLAG_DISABLE_PRIVATE_KEYS) { // Make it impossible to disable private keys after creation |