parazyd / obelisk

Electrum server using zeromq libbitcoin as backend
GNU Affero General Public License v3.0
16 stars 5 forks source link

protocol: mempool_get_fee_histogram #5

Open parazyd opened 3 years ago

parazyd commented 3 years ago

Some kind of implementation is needed. Currently we just return [[0, 0]]

parazyd commented 3 years ago

As short as possible really. I need help in figuring out how to implement this.

parazyd commented 3 years ago

On 20 April 2021 22:40:57 CEST, og-ewok @.***> wrote:

New to btc and asyncio, but interested to work on this. How long do you expect this issue to remain open?

Quote for above comment ^

parazyd commented 3 years ago

Perhaps this can also be implemented using the https://mempool.space API?

cidrblox commented 3 years ago

i'm not sure that the libbitcoin-server api supports what is needed for this. given a tx identifier, we can obtain fee data from the mem/transaction pool. but I don't see a way to get an index of all tx in the pool. the bitcoin core rpc has a method 'getrawmempool' that will return such a list. i believe this is what electrumx is using. am i missing something?

https://github.com/libbitcoin/libbitcoin-server/blob/master/src/interface/transaction_pool.cpp https://developer.bitcoin.org/reference/rpc/getrawmempool.html https://github.com/kyuupichan/electrumx/blob/master/electrumx/server/daemon.py

parazyd commented 3 years ago

Hi. I've asked about this in https://github.com/libbitcoin/libbitcoin-server/issues/547

I think you're indeed right, and this functionality may be missing. However, it should be possible to implement it.