Make CWallet::ScanForWalletTransactions args and return value const

This commit is contained in:
Ben Woosley
2018-04-25 15:41:55 -04:00
parent 47ed24cf8a
commit bb24d68650
3 changed files with 5 additions and 5 deletions

View File

@@ -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.");