This commit is contained in:
jl777
2017-07-13 22:17:33 +02:00
parent 3d0387c984
commit a99362fad8

View File

@@ -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_);