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

Weird fee estimation #79

Closed
Overtorment opened this issue Nov 9, 2020 · 6 comments
Closed

Weird fee estimation #79

Overtorment opened this issue Nov 9, 2020 · 6 comments

Comments

@Overtorment
Copy link

Im constantly comparing result of estimatefee with https://mempool.space and electrumx
always provides way higher values. And occasionally I use Electrum-desktop - I think I noticed if offers incorrect (too high) fee as well.

bitcoind ver: 0.20.1
electrumx ver: 1.15.0 (from this repo)

@SomberNight
Copy link
Member

Do you mean the blockchain.estimatefee RPC? ElectrumX just forwards those calls to bitcoind estimatesmartfee ("conservative" mode)

@SomberNight
Copy link
Member

If you want mempool based fee estimates, you should compute your own in the client, as Electrum does in mempool mode.
The client can get a view of the mempool calling mempool.get_fee_histogram.

@Overtorment
Copy link
Author

thanks! will dig in that direction

@SomberNight
Copy link
Member

SomberNight commented Nov 10, 2020

Note that blockchain.estimatefee can take an optional second parameter for the mode for bitcoind (so you can set it to economical), since kyuupichan/electrumx#1001.
It was not added to the protocol documentation in that PR and the protocol version was not bumped either, so you cannot be sure if the server supports it :/
I am making it part of protocol version 1.5 though (#80).

@benma
Copy link

benma commented Jan 13, 2024

@SomberNight are there still plans to add a protocol version 1.5 that officially documents the 2nd argument of estimatefee()?

@SomberNight
Copy link
Member

Yes. The protocol 1.5/2.0 (#90) stuff is still on my TODO list, but realistically I don't know when I can get to it.

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

No branches or pull requests

3 participants