We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8d645c commit db2d093Copy full SHA for db2d093
src/wallet/rpcwallet.cpp
@@ -3459,6 +3459,11 @@ UniValue rescanblockchain(const JSONRPCRequest& request)
3459
3460
if (tip_height) {
3461
start_block = locked_chain->getBlockHash(start_height);
3462
+ // If called with a stop_height, set the stop_height here to
3463
+ // trigger a rescan to that height.
3464
+ // If called without a stop height, leave stop_height as null here
3465
+ // so rescan continues to the tip (even if the tip advances during
3466
+ // rescan).
3467
if (stop_height) {
3468
stop_block = locked_chain->getBlockHash(*stop_height);
3469
}
0 commit comments