From 9fb18458e8a40042af16fa423e8968f3cc422219 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 8 Sep 2016 15:03:20 -0700 Subject: [PATCH] Add assert for two mutually exclusive member variables. --- src/wallet/asyncrpcoperation_sendmany.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wallet/asyncrpcoperation_sendmany.cpp b/src/wallet/asyncrpcoperation_sendmany.cpp index 26cbddd3b..d505474c0 100644 --- a/src/wallet/asyncrpcoperation_sendmany.cpp +++ b/src/wallet/asyncrpcoperation_sendmany.cpp @@ -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;