diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 745dc3ce4..ced9b19b2 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -3381,7 +3381,7 @@ UniValue z_sweepstatus(const UniValue& params, bool fHelp, const CPubKey& mypk) if (pwalletMain->fConsolidationRunning) { ret.push_back(Pair("next_zsweep", pwalletMain->sweepInterval + chainActive.Tip()->GetHeight())); } else { - if (pwalletMain->nextConsolidation == 0) { + if (pwalletMain->nextSweep == 0) { ret.push_back(Pair("next_zsweep", chainActive.Tip()->GetHeight() + 1)); } else { ret.push_back(Pair("next_zsweep", pwalletMain->nextSweep));