Skip to content

Commit 41a2545

Browse files
committed
[fees]: change estimatesmartfee default mode to economical
1 parent b27afb7 commit 41a2545

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rpc/fees.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static RPCHelpMan estimatesmartfee()
3636
"in BIP 141 (witness data is discounted).\n",
3737
{
3838
{"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"
4040
"Whether to return a more conservative estimate which also satisfies\n"
4141
"a longer history. A conservative estimate potentially returns a\n"
4242
"higher feerate and is more likely to be sufficient for the desired\n"
@@ -71,13 +71,13 @@ static RPCHelpMan estimatesmartfee()
7171
CHECK_NONFATAL(mempool.m_opts.signals)->SyncWithValidationInterfaceQueue();
7272
unsigned int max_target = fee_estimator.HighestTargetTracked(FeeEstimateHorizon::LONG_HALFLIFE);
7373
unsigned int conf_target = ParseConfirmTarget(request.params[0], max_target);
74-
bool conservative = true;
74+
bool conservative = false;
7575
if (!request.params[1].isNull()) {
7676
FeeEstimateMode fee_mode;
7777
if (!FeeModeFromString(request.params[1].get_str(), fee_mode)) {
7878
throw JSONRPCError(RPC_INVALID_PARAMETER, InvalidEstimateModeErrorMessage());
7979
}
80-
if (fee_mode == FeeEstimateMode::ECONOMICAL) conservative = false;
80+
if (fee_mode == FeeEstimateMode::CONSERVATIVE) conservative = true;
8181
}
8282

8383
UniValue result(UniValue::VOBJ);

0 commit comments

Comments
 (0)