Skip to content

Commit

Permalink
btc: estimatesmartfee in economical mode. (#3028)
Browse files Browse the repository at this point in the history
Conservative mode is known to massively overestimate transaction fees,
and while economical mode still has issues and still overestimates, its
not nearly as extreme.
  • Loading branch information
jholdstock authored and buck54321 committed Oct 18, 2024
1 parent 8680a20 commit a839a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/asset/btc/btc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1879,7 +1879,7 @@ func (btc *baseWallet) feeRate(confTarget uint64) (uint64, error) {
}

func rpcFeeRate(ctx context.Context, rr RawRequester, confTarget uint64) (uint64, error) {
feeResult, err := estimateSmartFee(ctx, rr, confTarget, &btcjson.EstimateModeConservative)
feeResult, err := estimateSmartFee(ctx, rr, confTarget, &btcjson.EstimateModeEconomical)
if err != nil {
return 0, err
}
Expand Down

0 comments on commit a839a77

Please sign in to comment.