diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2020-04-12 00:42:15 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2020-04-19 14:04:37 +0100 |
commit | fc289b7898fb90d4800675b69c0bb9b42df5599f (patch) | |
tree | d23ed832298fd2e74d934e5cf554328e7e9028b3 /src/wallet/wallet.cpp | |
parent | b470c758470fd97ccb42d0348a32942afa2a3ec8 (diff) | |
download | bitcoin-fc289b7898fb90d4800675b69c0bb9b42df5599f.tar.xz |
wallet: Refactor WalletRescanReserver to use wallet reference
Diffstat (limited to 'src/wallet/wallet.cpp')
-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 e175117b0e..7a6deab1a8 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -4023,7 +4023,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain, } { - WalletRescanReserver reserver(walletInstance.get()); + WalletRescanReserver reserver(*walletInstance); if (!reserver.reserve() || (ScanResult::SUCCESS != walletInstance->ScanForWalletTransactions(locked_chain->getBlockHash(rescan_height), rescan_height, {} /* max height */, reserver, true /* update */).status)) { error = _("Failed to rescan the wallet during initialization").translated; return nullptr; |