From 37301759713fce42d434f2e38d3694fa200d9267 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Sat, 27 Aug 2022 14:04:53 -0400 Subject: [PATCH] Add some logging when skipping sweep/consolidation --- src/wallet/wallet.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 83f95cbb3..8c6e82586 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -520,12 +520,14 @@ void CWallet::RunSaplingSweep(int blockHeight) { } //Don't Run if consolidation will run soon. - if (fSaplingConsolidationEnabled && nextConsolidation - 15 <= blockHeight) { + if (fSaplingConsolidationEnabled && nextConsolidation - 5 <= blockHeight) { + LogPrintf("%s: not consolidating since next sweep is within 5 blocks\n", __func__); return; } //Don't Run While consolidation is running. if (fConsolidationRunning) { + LogPrintf("%s: not sweeping since consolidation is currently running\n", __func__); return; }