0xB10C / bademeister-go

Implementation of Bademeister, a mempool watcher and recorder, in Golang.
0 stars 3 forks source link

Add support for `getrawmempool` rpc #10

Closed OttoAllmendinger closed 4 years ago

OttoAllmendinger commented 5 years ago

When bademeister starts cold with a running bitcoind instance, it only learns about new txs coming in and doesn't see the existing mempool.

We can use the getrawmempool rpc with verbose: true to get the initial state:

https://bitcoin.org/en/developer-reference#getrawmempool

0xB10C commented 5 years ago

I like the idea. The response includes the data we need. Yet I don't think it's needed for a MVP/alpha. Can be added later.

A few thoughts to keep in mind for the implementation, since the getrawmempool RPC can take 30s+ on fuller mempools: