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

FeeRates proposed by Electrum servers (BTC) are abnormally high #272

Open
knocte opened this issue Apr 18, 2024 · 0 comments · May be fixed by #278
Open

FeeRates proposed by Electrum servers (BTC) are abnormally high #272

knocte opened this issue Apr 18, 2024 · 0 comments · May be fixed by #278

Comments

@knocte
Copy link
Member

knocte commented Apr 18, 2024

I noticed this in many occassions. An example was that I was given about 200 sat/vB while mempool.space was suggesting a range around [50-70] at most.

Maybe we have wrong a units conversion issue? In case we don't, we should probably mitigate this issue by having 2 sources more of estimation:

  1. https://mempool.space/api/v1/fees/recommended
  2. https://api.blockchain.info/mempool/fees

So we should treat all 3 as same authority (the 3rd one being the average between some electrum servers, which is the only source we have in master branch now). But instead of doing an average of the 3, we should probably do an average of the 2 closest ones, to prevent outliers. Example for this algorithm is here: c5530e2 (in particular, c5530e2#diff-334c23b77817534a6745af372d0f1f2b4512ef053d679909a5e8471ae278c301R1096 )

@knocte knocte linked a pull request May 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant