aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw0xlt <94266259+w0xlt@users.noreply.github.com>2022-07-12 10:29:08 -0300
committerw0xlt <94266259+w0xlt@users.noreply.github.com>2022-07-12 10:29:08 -0300
commitc6c35db0571c2f2bdd34febbfe9acd52a42d7b95 (patch)
tree625086db36b44e145eefb7e4efc6ffe27996be7e /src
parent316afb1eca47fe179584bd2d8ae400f9aff474d4 (diff)
downloadbitcoin-c6c35db0571c2f2bdd34febbfe9acd52a42d7b95.tar.xz
wallet: change `ScanForWalletTransactions` to use `Ticks()`
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index de4a8a6eb7..475627c76c 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -1807,8 +1807,7 @@ CWallet::ScanResult CWallet::ScanForWalletTransactions(const uint256& start_bloc
WalletLogPrintf("Rescan interrupted by shutdown request at block %d. Progress=%f\n", block_height, progress_current);
result.status = ScanResult::USER_ABORT;
} else {
- auto duration_milliseconds = std::chrono::duration_cast<std::chrono::milliseconds>(reserver.now() - start_time);
- WalletLogPrintf("Rescan completed in %15dms\n", duration_milliseconds.count());
+ WalletLogPrintf("Rescan completed in %15dms\n", Ticks<std::chrono::milliseconds>(reserver.now() - start_time));
}
return result;
}