@@ -36,7 +36,7 @@ static RPCHelpMan estimatesmartfee()
36
36
" in BIP 141 (witness data is discounted).\n " ,
37
37
{
38
38
{" conf_target" , RPCArg::Type::NUM, RPCArg::Optional::NO, " Confirmation target in blocks (1 - 1008)" },
39
- {" estimate_mode" , RPCArg::Type::STR, RPCArg::Default{" conservative " }, " The fee estimate mode.\n "
39
+ {" estimate_mode" , RPCArg::Type::STR, RPCArg::Default{" economical " }, " The fee estimate mode.\n "
40
40
" Whether to return a more conservative estimate which also satisfies\n "
41
41
" a longer history. A conservative estimate potentially returns a\n "
42
42
" higher feerate and is more likely to be sufficient for the desired\n "
@@ -71,13 +71,13 @@ static RPCHelpMan estimatesmartfee()
71
71
CHECK_NONFATAL (mempool.m_opts .signals )->SyncWithValidationInterfaceQueue ();
72
72
unsigned int max_target = fee_estimator.HighestTargetTracked (FeeEstimateHorizon::LONG_HALFLIFE);
73
73
unsigned int conf_target = ParseConfirmTarget (request.params [0 ], max_target);
74
- bool conservative = true ;
74
+ bool conservative = false ;
75
75
if (!request.params [1 ].isNull ()) {
76
76
FeeEstimateMode fee_mode;
77
77
if (!FeeModeFromString (request.params [1 ].get_str (), fee_mode)) {
78
78
throw JSONRPCError (RPC_INVALID_PARAMETER, InvalidEstimateModeErrorMessage ());
79
79
}
80
- if (fee_mode == FeeEstimateMode::ECONOMICAL ) conservative = false ;
80
+ if (fee_mode == FeeEstimateMode::CONSERVATIVE ) conservative = true ;
81
81
}
82
82
83
83
UniValue result (UniValue::VOBJ);
0 commit comments