From 165b98df3d2976248f67c08442fce2a346cec47f Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Sun, 15 Nov 2020 20:52:43 -0500 Subject: [PATCH] Show remaining blocks in BuildWitnessCache logging --- src/wallet/wallet.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 9de10fa00..0b07cf21c 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -21,7 +21,6 @@ #include "wallet/wallet.h" #include "asyncrpcqueue.h" - #include "checkpoints.h" #include "coincontrol.h" #include "consensus/upgrades.h" @@ -42,9 +41,7 @@ #include "wallet/asyncrpcoperation_saplingconsolidation.h" #include "zcash/zip32.h" #include "cc/CCinclude.h" - #include - #include #include #include @@ -1088,7 +1085,7 @@ void CWallet::BuildWitnessCache(const CBlockIndex* pindex, bool witnessOnly) while (pblockindex) { if (pblockindex->GetHeight() % 100 == 0 && pblockindex->GetHeight() < height - 5) { - LogPrintf("Building Witnesses for block %i %.4f complete\n", pblockindex->GetHeight(), pblockindex->GetHeight() / double(height)); + LogPrintf("Building Witnesses for block %i %.4f complete, %d remaining\n", pblockindex->GetHeight(), pblockindex->GetHeight() / double(height), height - pblockindex->GetHeight() ); } SaplingMerkleTree saplingTree;