|
|
|
@ -3141,7 +3141,7 @@ static UniValue fundrawtransaction(const JSONRPCRequest& request)
|
|
|
|
|
CAmount fee;
|
|
|
|
|
int change_position;
|
|
|
|
|
CCoinControl coin_control;
|
|
|
|
|
// Automatically select (additional) coins. Can be overriden by options.add_inputs.
|
|
|
|
|
// Automatically select (additional) coins. Can be overridden by options.add_inputs.
|
|
|
|
|
coin_control.m_add_inputs = true;
|
|
|
|
|
FundTransaction(pwallet, tx, fee, change_position, request.params[1], coin_control);
|
|
|
|
|
|
|
|
|
@ -4075,7 +4075,7 @@ UniValue walletcreatefundedpsbt(const JSONRPCRequest& request)
|
|
|
|
|
CMutableTransaction rawTx = ConstructTransaction(request.params[0], request.params[1], request.params[2], rbf);
|
|
|
|
|
CCoinControl coin_control;
|
|
|
|
|
// Automatically select coins, unless at least one is manually selected. Can
|
|
|
|
|
// be overriden by options.add_inputs.
|
|
|
|
|
// be overridden by options.add_inputs.
|
|
|
|
|
coin_control.m_add_inputs = rawTx.vin.size() == 0;
|
|
|
|
|
FundTransaction(pwallet, rawTx, fee, change_position, request.params[3], coin_control);
|
|
|
|
|
|
|
|
|
|