|
|
@ -80,15 +80,16 @@ bool IsExcludedAddress(libzcash::SaplingPaymentAddress zaddr) { |
|
|
|
auto zAddressExclude = DecodePaymentAddress(sweepExcludeAddress); |
|
|
|
|
|
|
|
if (boost::get<libzcash::SaplingPaymentAddress>(&zAddressExclude) != nullptr) { |
|
|
|
sweepExcludeAddress = boost::get<libzcash::SaplingPaymentAddress>(zAddressExclude); |
|
|
|
auto excludeAddress = boost::get<libzcash::SaplingPaymentAddress>(zAddressExclude); |
|
|
|
if (excludeAddress == zaddr) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
} else { |
|
|
|
// This is an invalid sapling zaddr
|
|
|
|
LogPrintf("%s: Invalid zsweepexclude zaddr %s, ignoring\n", opid, sweepExcludeAddress); |
|
|
|
LogPrintf("%s: Invalid zsweepexclude zaddr %s, ignoring\n", sweepExcludeAddress); |
|
|
|
continue; |
|
|
|
} |
|
|
|
|
|
|
|
if (sweepExcludeAddress == entry.address) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return false; |
|
|
@ -142,7 +143,7 @@ bool AsyncRPCOperation_sweep::main_impl() { |
|
|
|
// Map all notes (zutxos) by address
|
|
|
|
for (auto & entry : saplingEntries) { |
|
|
|
// do not need to sweep Excluded Addresses
|
|
|
|
if(IsExcludedAddress(entry.address) { |
|
|
|
if(IsExcludedAddress(entry.address)) { |
|
|
|
continue; |
|
|
|
} |
|
|
|
|
|
|
|