Add assert for two mutually exclusive member variables.

This commit is contained in:
Simon 2016-09-08 15:03:20 -07:00
parent cc59ac12a9
commit 9fb18458e8
1 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,8 @@ void AsyncRPCOperation_sendmany::main() {
// 3. #1277 Spendable notes are not locked, so an operation running in parallel could also try to use them
bool AsyncRPCOperation_sendmany::main_impl() {
assert(isfromtaddr_ != isfromzaddr_);
bool isSingleZaddrOutput = (t_outputs_.size()==0 && z_outputs_.size()==1);
bool isPureTaddrOnlyTx = (isfromtaddr_ && z_outputs_.size() == 0);
CAmount minersFee = ASYNC_RPC_OPERATION_DEFAULT_MINERS_FEE;