diff options
| author | Jonas Schnelli <[email protected]> | 2017-12-12 13:13:58 -1000 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2018-01-23 20:24:18 -1000 |
| commit | bc356b4268e222ac57d9e9297d2a986bb6e09de8 (patch) | |
| tree | 994c99623c3b7aa10e367d5d3e02451da2025d38 /src/wallet/rpcwallet.cpp | |
| parent | Add RAII wallet rescan reserver (diff) | |
| download | discoin-bc356b4268e222ac57d9e9297d2a986bb6e09de8.tar.xz discoin-bc356b4268e222ac57d9e9297d2a986bb6e09de8.zip | |
Make sure WalletRescanReserver has successfully reserved the rescan
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
| -rw-r--r-- | src/wallet/rpcwallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 50642e6b8..7188bb40b 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -3441,7 +3441,7 @@ UniValue rescanblockchain(const JSONRPCRequest& request) } } - CBlockIndex *stopBlock = pwallet->ScanForWalletTransactions(pindexStart, pindexStop, true); + CBlockIndex *stopBlock = pwallet->ScanForWalletTransactions(pindexStart, pindexStop, reserver, true); if (!stopBlock) { if (pwallet->IsAbortingRescan()) { throw JSONRPCError(RPC_MISC_ERROR, "Rescan aborted."); |