mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
wallet: fast rescan: show log message for every non-skipped block
For that purpose, a new logging category BCLog::SCAN is introduced.
This commit is contained in:
@@ -1849,10 +1849,16 @@ CWallet::ScanResult CWallet::ScanForWalletTransactions(const uint256& start_bloc
|
||||
if (fast_rescan_filter) {
|
||||
fast_rescan_filter->UpdateIfNeeded();
|
||||
auto matches_block{fast_rescan_filter->MatchesBlock(block_hash)};
|
||||
if (matches_block.has_value() && !*matches_block) {
|
||||
result.last_scanned_block = block_hash;
|
||||
result.last_scanned_height = block_height;
|
||||
fetch_block = false;
|
||||
if (matches_block.has_value()) {
|
||||
if (*matches_block) {
|
||||
LogPrint(BCLog::SCAN, "Fast rescan: inspect block %d [%s] (filter matched)\n", block_height, block_hash.ToString());
|
||||
} else {
|
||||
result.last_scanned_block = block_hash;
|
||||
result.last_scanned_height = block_height;
|
||||
fetch_block = false;
|
||||
}
|
||||
} else {
|
||||
LogPrint(BCLog::SCAN, "Fast rescan: inspect block %d [%s] (WARNING: block filter not found!)\n", block_height, block_hash.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user