Skip to content

Commit

Permalink
Pass opts from fund to CreateTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar committed Mar 9, 2023
1 parent e831930 commit 4b2df78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/masternodes/mn_rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ CMutableTransaction fund(CMutableTransaction & mtx, CWalletCoinsUnlocker& pwalle
// we does not honor non locking spends anymore
// it ensures auto auth not overlap regular tx inputs
const bool lockUnspents = true;
if (!pwallet->FundTransaction(mtx, fee_out, change_position, strFailReason, lockUnspents, {} /*setSubtractFeeFromOutputs*/, coinControl)) {
if (!pwallet->FundTransaction(mtx, fee_out, change_position, strFailReason, lockUnspents, {} /*setSubtractFeeFromOutputs*/, coinControl, coinSelectOpts)) {
throw JSONRPCError(RPC_WALLET_ERROR, strFailReason);
}
for (auto& txin : mtx.vin) {
Expand Down

0 comments on commit 4b2df78

Please sign in to comment.