Add some logging when skipping sweep/consolidation
This commit is contained in:
@@ -520,12 +520,14 @@ void CWallet::RunSaplingSweep(int blockHeight) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Don't Run if consolidation will run soon.
|
//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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Don't Run While consolidation is running.
|
//Don't Run While consolidation is running.
|
||||||
if (fConsolidationRunning) {
|
if (fConsolidationRunning) {
|
||||||
|
LogPrintf("%s: not sweeping since consolidation is currently running\n", __func__);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user