Skip to content

Commit

Permalink
Add suggested rescanblockchain comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanofsky committed Feb 1, 2019
1 parent a8d645c commit db2d093
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3459,6 +3459,11 @@ UniValue rescanblockchain(const JSONRPCRequest& request)

if (tip_height) {
start_block = locked_chain->getBlockHash(start_height);
// If called with a stop_height, set the stop_height here to
// trigger a rescan to that height.
// If called without a stop height, leave stop_height as null here
// so rescan continues to the tip (even if the tip advances during
// rescan).
if (stop_height) {
stop_block = locked_chain->getBlockHash(*stop_height);
}
Expand Down

0 comments on commit db2d093

Please sign in to comment.