@@ -198,7 +198,7 @@ static std::string LabelFromValue(const UniValue& value)
198
198
/* *
199
199
* Update coin control with fee estimation based on the given parameters
200
200
*
201
- * @param[in] pwallet Wallet pointer
201
+ * @param[in] wallet Wallet reference
202
202
* @param[in,out] cc Coin control to be updated
203
203
* @param[in] conf_target UniValue integer; confirmation target in blocks, values between 1 and 1008 are valid per policy/fees.h;
204
204
* if a fee_rate is present, 0 is allowed here as a no-op positional placeholder
@@ -210,7 +210,7 @@ static std::string LabelFromValue(const UniValue& value)
210
210
* verify only that fee_rate is greater than 0
211
211
* @throws a JSONRPCError if conf_target, estimate_mode, or fee_rate contain invalid values or are in conflict
212
212
*/
213
- static void SetFeeEstimateMode (const CWallet* pwallet , CCoinControl& cc, const UniValue& conf_target, const UniValue& estimate_mode, const UniValue& fee_rate, bool override_min_fee)
213
+ static void SetFeeEstimateMode (const CWallet& wallet , CCoinControl& cc, const UniValue& conf_target, const UniValue& estimate_mode, const UniValue& fee_rate, bool override_min_fee)
214
214
{
215
215
if (!fee_rate.isNull ()) {
216
216
if (!conf_target.isNull () && conf_target.get_int () > 0 ) {
@@ -235,7 +235,7 @@ static void SetFeeEstimateMode(const CWallet* pwallet, CCoinControl& cc, const U
235
235
throw JSONRPCError (RPC_INVALID_PARAMETER, InvalidEstimateModeErrorMessage ());
236
236
}
237
237
if (!conf_target.isNull ()) {
238
- cc.m_confirm_target = ParseConfirmTarget (conf_target, pwallet-> chain ().estimateMaxBlocks ());
238
+ cc.m_confirm_target = ParseConfirmTarget (conf_target, wallet. chain ().estimateMaxBlocks ());
239
239
}
240
240
}
241
241
@@ -514,7 +514,7 @@ static RPCHelpMan sendtoaddress()
514
514
// We also enable partial spend avoidance if reuse avoidance is set.
515
515
coin_control.m_avoid_partial_spends |= coin_control.m_avoid_address_reuse ;
516
516
517
- SetFeeEstimateMode (pwallet, coin_control, /* conf_target */ request.params [6 ], /* estimate_mode */ request.params [7 ], /* fee_rate */ request.params [9 ], /* override_min_fee */ false );
517
+ SetFeeEstimateMode (* pwallet, coin_control, /* conf_target */ request.params [6 ], /* estimate_mode */ request.params [7 ], /* fee_rate */ request.params [9 ], /* override_min_fee */ false );
518
518
519
519
EnsureWalletIsUnlocked (pwallet);
520
520
@@ -942,7 +942,7 @@ static RPCHelpMan sendmany()
942
942
coin_control.m_signal_bip125_rbf = request.params [5 ].get_bool ();
943
943
}
944
944
945
- SetFeeEstimateMode (pwallet, coin_control, /* conf_target */ request.params [6 ], /* estimate_mode */ request.params [7 ], /* fee_rate */ request.params [8 ], /* override_min_fee */ false );
945
+ SetFeeEstimateMode (* pwallet, coin_control, /* conf_target */ request.params [6 ], /* estimate_mode */ request.params [7 ], /* fee_rate */ request.params [8 ], /* override_min_fee */ false );
946
946
947
947
std::vector<CRecipient> recipients;
948
948
ParseRecipients (sendTo, subtractFeeFromAmount, recipients);
@@ -3164,7 +3164,7 @@ void FundTransaction(CWallet* const pwallet, CMutableTransaction& tx, CAmount& f
3164
3164
if (options.exists (" replaceable" )) {
3165
3165
coinControl.m_signal_bip125_rbf = options[" replaceable" ].get_bool ();
3166
3166
}
3167
- SetFeeEstimateMode (pwallet, coinControl, options[" conf_target" ], options[" estimate_mode" ], options[" fee_rate" ], override_min_fee);
3167
+ SetFeeEstimateMode (* pwallet, coinControl, options[" conf_target" ], options[" estimate_mode" ], options[" fee_rate" ], override_min_fee);
3168
3168
}
3169
3169
} else {
3170
3170
// if options is null and not a bool
@@ -3492,7 +3492,7 @@ static RPCHelpMan bumpfee_helper(std::string method_name)
3492
3492
if (options.exists (" replaceable" )) {
3493
3493
coin_control.m_signal_bip125_rbf = options[" replaceable" ].get_bool ();
3494
3494
}
3495
- SetFeeEstimateMode (pwallet, coin_control, conf_target, options[" estimate_mode" ], options[" fee_rate" ], /* override_min_fee */ false );
3495
+ SetFeeEstimateMode (* pwallet, coin_control, conf_target, options[" estimate_mode" ], options[" fee_rate" ], /* override_min_fee */ false );
3496
3496
}
3497
3497
3498
3498
// Make sure the results are valid at least up to the most recent block
0 commit comments