Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcwallet.cpp
Show First 20 Lines • Show All 3,923 Lines • ▼ Show 20 Lines | RPCHelpMan{ | ||||
"reorg and the call didn't scan any blocks because they were " | "reorg and the call didn't scan any blocks because they were " | ||||
"already scanned in the background.\n" | "already scanned in the background.\n" | ||||
"}\n"}, | "}\n"}, | ||||
RPCExamples{HelpExampleCli("rescanblockchain", "100000 120000") + | RPCExamples{HelpExampleCli("rescanblockchain", "100000 120000") + | ||||
HelpExampleRpc("rescanblockchain", "100000, 120000")}, | HelpExampleRpc("rescanblockchain", "100000, 120000")}, | ||||
} | } | ||||
.Check(request); | .Check(request); | ||||
WalletRescanReserver reserver(pwallet); | WalletRescanReserver reserver(*pwallet); | ||||
if (!reserver.reserve()) { | if (!reserver.reserve()) { | ||||
throw JSONRPCError( | throw JSONRPCError( | ||||
RPC_WALLET_ERROR, | RPC_WALLET_ERROR, | ||||
"Wallet is currently rescanning. Abort existing rescan or wait."); | "Wallet is currently rescanning. Abort existing rescan or wait."); | ||||
} | } | ||||
int start_height = 0; | int start_height = 0; | ||||
BlockHash start_block, stop_block; | BlockHash start_block, stop_block; | ||||
▲ Show 20 Lines • Show All 858 Lines • Show Last 20 Lines |