diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 59be0f5bd..246615a5a 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -3369,7 +3369,12 @@ UniValue z_sweepstatus(const UniValue& params, bool fHelp, const CPubKey& mypk) ret.push_back(Pair("next_zsweep", pwalletMain->nextSweep)); ret.push_back(Pair("zsweepinterval", pwalletMain->sweepInterval)); ret.push_back(Pair("zsweepaddress", pwalletMain->sweepAddress)); - ret.push_back(Pair("zsweepexclude", pwalletMain->sweepExcludeAddress)); + UniValue excludes(UniValue::VARR); + // BOOST_FOREACH(const std::string& exclude, pwalletMain->sweepExcludeAddresses ) { + // excludes.push_back(exclude); + // } + excludes.push_back( pwalletMain->sweepExcludeAddress ); + ret.push_back(Pair("zsweepexclude", excludes)); ret.push_back(Pair("zsweepmaxinputs", pwalletMain->sweepMaxInputs)); ret.push_back(Pair("zsweepfee", pwalletMain->sweepFee)); ret.push_back(Pair("zsweepexternal", pwalletMain->fSweepExternalEnabled));