I thought I’d share this tool I put together, based off of @0xB10C 's peer_observer project. bitcointap is a rust library and cli tool for tapping into bitcoin-core’s ebpf-usdt tracepoints. I have a demo video here to show how it works:
If you’re new to tracing in core I suggest checking out the tracing docs:
Let us know what traces you would find useful so we can start making this tool more powerful!
It is in somewhat of a working state; cargo run --bin tui --release -- --nats-address my-peer-observer-host:4222 will get you something like this: peer observer tui - asciinema.org
yeah I wanted something a bit more hackable that doesn’t depend on nats. The library just exposes an mpsc channel that you can use to read events from. Using that you should be able to build anything on top of it, including realtime visualizations.
I was trying to build a realtime cluster mempool visualizer at the bitcoin++ mempool hackathon and realized I needed this tool first.