aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcwallet.cpp
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2018-04-25 15:41:55 -0400
committerBen Woosley <ben.woosley@gmail.com>2018-11-13 00:01:14 -0500
commitbb24d686500375564a2137f0940b329b6905bce6 (patch)
treed27dccfa93f179ed01088ffece0e4b9d793d9b3d /src/wallet/rpcwallet.cpp
parent47ed24cf8aa7be3b778731b1f140ad9941157933 (diff)
Make CWallet::ScanForWalletTransactions args and return value const
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
-rw-r--r--src/wallet/rpcwallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp
index bfac990639..1514c978b8 100644
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -3332,7 +3332,7 @@ UniValue rescanblockchain(const JSONRPCRequest& request)
}
}
- CBlockIndex *stopBlock = pwallet->ScanForWalletTransactions(pindexStart, pindexStop, reserver, true);
+ const CBlockIndex* stopBlock = pwallet->ScanForWalletTransactions(pindexStart, pindexStop, reserver, true);
if (!stopBlock) {
if (pwallet->IsAbortingRescan()) {
throw JSONRPCError(RPC_MISC_ERROR, "Rescan aborted.");