From a99362fad8ada16bf4d64784ba14dc5871097747 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 13 Jul 2017 22:17:33 +0200 Subject: [PATCH] Test --- src/wallet/asyncrpcoperation_sendmany.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/asyncrpcoperation_sendmany.cpp b/src/wallet/asyncrpcoperation_sendmany.cpp index 53b2c43c7..baac89315 100644 --- a/src/wallet/asyncrpcoperation_sendmany.cpp +++ b/src/wallet/asyncrpcoperation_sendmany.cpp @@ -1110,7 +1110,7 @@ void AsyncRPCOperation_sendmany::add_taddr_change_output_to_tx(CAmount amount) { //if ( 0 ) // CScript scriptPubKey = GetScriptForDestination(fromaddress.Get()); //else - { + //{ CReserveKey keyChange(pwalletMain); CPubKey vchPubKey; bool ret = keyChange.GetReservedKey(vchPubKey); @@ -1118,7 +1118,7 @@ void AsyncRPCOperation_sendmany::add_taddr_change_output_to_tx(CAmount amount) { throw JSONRPCError(RPC_WALLET_KEYPOOL_RAN_OUT, "Could not generate a taddr to use as a change address"); // should never fail, as we just unlocked } CScript scriptPubKey = GetScriptForDestination(vchPubKey.GetID()); - } + //} CTxOut out(amount, scriptPubKey); CMutableTransaction rawTx(tx_);