Log if we have no zsweepaddress or an invalid zsweepaddress

This commit is contained in:
Duke Leto 2022-08-30 21:05:09 -04:00
parent 1748f0f2a3
commit 702c2163cd

View File

@ -103,12 +103,14 @@ bool AsyncRPCOperation_sweep::main_impl() {
}
}
} else {
LogPrintf("%s: No zsweepaddress configured, exiting\n", opid);
return false;
}
} else {
if (boost::get<libzcash::SaplingPaymentAddress>(&rpcSweepAddress) != nullptr) {
sweepAddress = boost::get<libzcash::SaplingPaymentAddress>(rpcSweepAddress);
} else {
LogPrintf("%s: Invalid zsweepaddress, exiting\n", opid);
return false;
}
}