From 1eb8789789083049ed0cd98a2dd51b11d7fdea36 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 8 Sep 2016 16:46:56 -0700 Subject: [PATCH] Add assert --- src/wallet/asyncrpcoperation_sendmany.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/asyncrpcoperation_sendmany.cpp b/src/wallet/asyncrpcoperation_sendmany.cpp index e2eaad17..5823485c 100644 --- a/src/wallet/asyncrpcoperation_sendmany.cpp +++ b/src/wallet/asyncrpcoperation_sendmany.cpp @@ -308,7 +308,7 @@ bool AsyncRPCOperation_sendmany::main_impl() { } else if (!isSingleZaddrOutput && selectedUTXOCoinbase) { // This should not happen and is not allowed - throw JSONRPCError(RPC_WALLET_ERROR, "Wallet selected Coinbase UTXOs as valid inputs when it should not have done"); + assert(false); } else { // If there is a single zaddr and no coinbase utxos, just use a regular output for change. add_taddr_change_output_to_tx(change);