|
|
@ -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; |
|
|
|
} |
|
|
|
|
|
|
|