|
|
@ -3334,10 +3334,9 @@ UniValue z_sweepstatus(const UniValue& params, bool fHelp, const CPubKey& mypk) |
|
|
|
LOCK2(cs_main, pwalletMain->cs_wallet); |
|
|
|
|
|
|
|
UniValue ret(UniValue::VOBJ); |
|
|
|
auto amount_swept; |
|
|
|
ret.push_back(Pair("zsweep", pwalletMain->fSweepEnabled)); |
|
|
|
ret.push_back(Pair("running", pwalletMain->fSweepRunning)); |
|
|
|
ret.push_back(Pair("amount_swept", amount_swept)); |
|
|
|
ret.push_back(Pair("amount_swept", pwalletMain->amountSwept)); |
|
|
|
|
|
|
|
if (pwalletMain->fConsolidationRunning) { |
|
|
|
ret.push_back(Pair("next_zsweep", pwalletMain->sweepInterval + chainActive.Tip()->GetHeight())); |
|
|
|