Add z_sweepstatus RPC

This commit is contained in:
Jonathan "Duke" Leto
2022-08-27 10:35:08 -07:00
parent 02ef714901
commit 4aedeb557b
5 changed files with 50 additions and 2 deletions

View File

@@ -2086,6 +2086,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
}
auto hasSpendingKey = boost::apply_visitor(HaveSpendingKeyForPaymentAddress(pwalletMain), zSweep);
auto allowSweepToExternalWallet = GetArg("-zsweepexternal", false);
pwalletMain->sweepAddress = vSweep[i];
if (!hasSpendingKey) {
if (allowSweepToExternalWallet) {