Skip to content

Commit db2d093

Browse files
committed
Add suggested rescanblockchain comments
From bitcoin#14711 (comment)
1 parent a8d645c commit db2d093

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/wallet/rpcwallet.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -3459,6 +3459,11 @@ UniValue rescanblockchain(const JSONRPCRequest& request)
34593459

34603460
if (tip_height) {
34613461
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).
34623467
if (stop_height) {
34633468
stop_block = locked_chain->getBlockHash(*stop_height);
34643469
}

0 commit comments

Comments
 (0)