Save excluded address to be used later

This commit is contained in:
Duke Leto
2022-09-13 00:18:44 -04:00
parent 0c22e26358
commit 88d3f11664

View File

@@ -2121,6 +2121,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
for (int i = 0; i < vSweepExclude.size(); i++) {
// LogPrintf("Sweep Excluded Address: %s\n", vSweepExclude[i]);
pwalletMain->sweepExcludeAddress = vSweepExclude[i];
auto zSweepExcluded = DecodePaymentAddress(vSweepExclude[i]);
if (!IsValidPaymentAddress(zSweepExcluded)) {
return InitError("Invalid zsweep address");