Fix bug in z_sweepstatus
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user