File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class CFeeRate
25
25
/* * Fee rate of 0 satoshis per kB */
26
26
CFeeRate () : nSatoshisPerK(0 ) { }
27
27
template <typename I>
28
- CFeeRate (const I _nSatoshisPerK): nSatoshisPerK(_nSatoshisPerK) {
28
+ explicit CFeeRate (const I _nSatoshisPerK): nSatoshisPerK(_nSatoshisPerK) {
29
29
// We've previously had bugs creep in from silent double->int conversion...
30
30
static_assert (std::is_integral<I>::value, " CFeeRate should be used without floats" );
31
31
}
Original file line number Diff line number Diff line change @@ -2625,7 +2625,7 @@ static UniValue settxfee(const JSONRPCRequest& request)
2625
2625
2626
2626
CAmount nAmount = AmountFromValue (request.params [0 ]);
2627
2627
CFeeRate tx_fee_rate (nAmount, 1000 );
2628
- if (tx_fee_rate == 0 ) {
2628
+ if (tx_fee_rate == CFeeRate ( 0 ) ) {
2629
2629
// automatic selection
2630
2630
} else if (tx_fee_rate < ::minRelayTxFee) {
2631
2631
throw JSONRPCError (RPC_INVALID_PARAMETER, strprintf (" txfee cannot be less than min relay tx fee (%s)" , ::minRelayTxFee.ToString ()));
You can’t perform that action at this time.
0 commit comments