Test
This commit is contained in:
@@ -1110,7 +1110,7 @@ void AsyncRPCOperation_sendmany::add_taddr_change_output_to_tx(CAmount amount) {
|
|||||||
//if ( 0 )
|
//if ( 0 )
|
||||||
// CScript scriptPubKey = GetScriptForDestination(fromaddress.Get());
|
// CScript scriptPubKey = GetScriptForDestination(fromaddress.Get());
|
||||||
//else
|
//else
|
||||||
{
|
//{
|
||||||
CReserveKey keyChange(pwalletMain);
|
CReserveKey keyChange(pwalletMain);
|
||||||
CPubKey vchPubKey;
|
CPubKey vchPubKey;
|
||||||
bool ret = keyChange.GetReservedKey(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
|
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());
|
CScript scriptPubKey = GetScriptForDestination(vchPubKey.GetID());
|
||||||
}
|
//}
|
||||||
CTxOut out(amount, scriptPubKey);
|
CTxOut out(amount, scriptPubKey);
|
||||||
|
|
||||||
CMutableTransaction rawTx(tx_);
|
CMutableTransaction rawTx(tx_);
|
||||||
|
|||||||
Reference in New Issue
Block a user