Add suggested rescanblockchain comments
From https://github.com/bitcoin/bitcoin/pull/14711#discussion_r252043990
This commit is contained in:
parent
a8d645c934
commit
db2d093233
1 changed files with 5 additions and 0 deletions
|
@ -3459,6 +3459,11 @@ UniValue rescanblockchain(const JSONRPCRequest& request)
|
||||||
|
|
||||||
if (tip_height) {
|
if (tip_height) {
|
||||||
start_block = locked_chain->getBlockHash(start_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) {
|
if (stop_height) {
|
||||||
stop_block = locked_chain->getBlockHash(*stop_height);
|
stop_block = locked_chain->getBlockHash(*stop_height);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue