-
Notifications
You must be signed in to change notification settings - Fork 36.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wallet: log on rescan completion #15901
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 9a5ca80
@@ -1862,6 +1862,8 @@ CWallet::ScanResult CWallet::ScanForWalletTransactions(const uint256& start_bloc | |||
} else if (block_height && chain().shutdownRequested()) { | |||
WalletLogPrintf("Rescan interrupted by shutdown request at block %d. Progress=%f\n", *block_height, progress_current); | |||
result.status = ScanResult::USER_ABORT; | |||
} else { | |||
WalletLogPrintf("Rescan completed.\n"); | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style-nit: Could add a commit to remove this scope (and the 4 extraneous spaces that precede the lines)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the commit to do that, but the diff is pretty big.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
Checked that the second commit is only removing a scope and whitespace. utACK 34e78fd Show signature
|
Concept ACK |
nit: Looking at the callers, this one already logs the success: Line 4233 in 7034149
|
34e78fd
to
fdc8755
Compare
fdc8755
to
1b602f6
Compare
@Empact I removed the logging from that caller, and added the time check to the log for every caller. |
utACK 1b602f6 |
1 similar comment
utACK 1b602f6 |
1b602f6 remove extraneous scope (andrewtoth) 6ad372a wallet: log on rescan completion (andrewtoth) Pull request description: Currently there is nothing logged when a rescan completes successfully. This leaves the last log message something like: ``` Still rescanning. At block 573037. Progress=0.998415 ``` It is unclear when the rescan actually finished. This adds a `Rescan completed.` message to make it more clear. ACKs for commit 1b602f: Empact: utACK 1b602f6 meshcollider: utACK 1b602f6 Tree-SHA512: 618d646a0f143c2372f1db91c14e7f677b39fb3a2957e887cbc349971c3e8953bc017e2028ac489368c20dbb9a7265c4c2d448c95de785366acfe0e576f1be66
Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
Currently there is nothing logged when a rescan completes successfully. This leaves the last log message something like:
It is unclear when the rescan actually finished. This adds a
Rescan completed.
message to make it more clear.