From 4b2df782241d2d30defbfe5e87ccb2b3f9eb1df7 Mon Sep 17 00:00:00 2001 From: Bushstar Date: Thu, 9 Mar 2023 10:26:53 +0800 Subject: [PATCH] Pass opts from fund to CreateTransaction --- src/masternodes/mn_rpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/masternodes/mn_rpc.cpp b/src/masternodes/mn_rpc.cpp index 8e7d4beba41..7c13a3d2941 100644 --- a/src/masternodes/mn_rpc.cpp +++ b/src/masternodes/mn_rpc.cpp @@ -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) {