Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcwallet.cpp
Show First 20 Lines • Show All 3,878 Lines • ▼ Show 20 Lines | UniValue rescanblockchain(const Config &config, const JSONRPCRequest &request) { | ||||
CWallet *const pwallet = wallet.get(); | CWallet *const pwallet = wallet.get(); | ||||
if (!EnsureWalletIsAvailable(pwallet, request.fHelp)) { | if (!EnsureWalletIsAvailable(pwallet, request.fHelp)) { | ||||
return NullUniValue; | return NullUniValue; | ||||
} | } | ||||
RPCHelpMan{ | RPCHelpMan{ | ||||
"rescanblockchain", | "rescanblockchain", | ||||
"Rescan the local blockchain for wallet related transactions.\n", | "Rescan the local blockchain for wallet related transactions.\n" | ||||
"Note: Use \"getwalletinfo\" to query the scanning progress.\n", | |||||
{ | { | ||||
{"start_height", RPCArg::Type::NUM, /* default */ "0", | {"start_height", RPCArg::Type::NUM, /* default */ "0", | ||||
"block height where the rescan should start"}, | "block height where the rescan should start"}, | ||||
{"stop_height", RPCArg::Type::NUM, | {"stop_height", RPCArg::Type::NUM, | ||||
RPCArg::Optional::OMITTED_NAMED_ARG, | RPCArg::Optional::OMITTED_NAMED_ARG, | ||||
"the last block height that should be scanned"}, | "the last block height that should be scanned"}, | ||||
}, | }, | ||||
RPCResult{"{\n" | RPCResult{"{\n" | ||||
▲ Show 20 Lines • Show All 891 Lines • Show Last 20 Lines |