aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcwallet.cpp
diff options
context:
space:
mode:
authorBen Woosley <[email protected]>2018-04-25 15:41:55 -0400
committerBen Woosley <[email protected]>2018-11-13 00:01:14 -0500
commitbb24d686500375564a2137f0940b329b6905bce6 (patch)
treed27dccfa93f179ed01088ffece0e4b9d793d9b3d /src/wallet/rpcwallet.cpp
parentMerge #14356: fix converttopsbt permitsigdata arg, add basic test (diff)
downloaddiscoin-bb24d686500375564a2137f0940b329b6905bce6.tar.xz
discoin-bb24d686500375564a2137f0940b329b6905bce6.zip
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 bfac99063..1514c978b 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.");