The early stages of a test program I'm using to get up-to-speed in Rust's
async
/await
.
The program connects to as many bitcoin nodes as possible, stays connected by
sending pong
messages to the ping
s, and asks each node for any other nodes
it knows about. The program then connects to those nodes and does the same
thing.
This is in a bit of a rough state right now, but throwing it up on GitHub anyway, in case it's useful to anybody else.
Usage:
# testnet
cargo +beta run testnet-seed.bitcoin.jonasschnelli.ch:18333 --network testnet3
# main
cargo +beta run seed.bitcoin.sprovoost.nl:8333 --network main