mempool-dat
Thursday, May 16, 2019A Golang package that can deserialize Bitcoin Core’s mempool.dat
files. This is a toy project. I developed this to learn more about Golang and the mempool.dat
file format by Bitcoin Core.
This Go package parses Bitcoin Core’s mempool.dat
files. These are automatically written since Bitcoin Core v0.14.0 on shutdown and can be written manually by calling the RPC savemempool
since Bitcoin Core v0.16.0.
The package offers access to the mempool.dat’s
- header
- version
- number of transactions
- mempool entries
- raw transaction parsed as (https://godoc.org/github.com/btcsuite/btcd/wire#MsgTx)
- first seen timestamp
- the feeDelta
- and the not-parsed mapDeltas as byte slices
Source on GitHub Documentation on GoDoc
I’ve talked about the LoadMempool()
and DumpMempool()
functions of Bitcoin Core at the 2019 Chaincode Labs Summer Residency seminar.
These functions are used to write and read the mempool.dat
file.