From 2a1cad1e5fbdf8081869a53b4399ef38c057ff87 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Sun, 11 Sep 2022 20:10:28 -0400 Subject: [PATCH] Fix bug in z_sweepstatus --- src/wallet/rpcwallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));