Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chainfee: return floor fee rate when a given target is not found #6062

Merged
merged 3 commits into from
Dec 9, 2021

Conversation

yyforyongyu
Copy link
Member

Instead of returning an error, we now log the error and return a default fee rate when a given conf target cannot be found from the web fee estimator.

Fixes #6056.

@yyforyongyu yyforyongyu force-pushed the 6056-fix-webapi branch 3 times, most recently from 50fdcb2 to 6256322 Compare December 6, 2021 09:21
@yyforyongyu yyforyongyu requested review from guggero, Roasbeef and bhandras and removed request for Roasbeef December 6, 2021 09:46
Copy link
Collaborator

@bhandras bhandras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🍨

lnwallet/chainfee/estimator.go Outdated Show resolved Hide resolved
@Roasbeef Roasbeef added this to the v0.14.2 milestone Dec 6, 2021
Copy link
Collaborator

@guggero guggero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix, LGTM 🎉

@alexbosworth
Copy link
Contributor

A fee estimate of 1 is not included in the fee estimates on purpose, it doesn't make sense given the way that Bitcoin core estimates fees

@Roasbeef Roasbeef merged commit 842fa15 into lightningnetwork:master Dec 9, 2021
@yyforyongyu yyforyongyu deleted the 6056-fix-webapi branch December 12, 2021 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants