Simple Bitcoin P2P Network Handshake Implementation in Rust

I'm trying to implement the Bitcoin P2P handshake protocol using Rust in this repo https://github.com/nbm2023/bitcoin-p2p-handshake/blob/main/src/lib.rs The code simply runs a test which tries to sends a Version Message to a Bitcoin node and waits for a response.

According to this documentation https://en.bitcoin.it/wiki/Protocol_documentation I believe I have the correct components of a Version Message as well as the correct encoding. The Bitcoin node I'm trying to connect to is "seed.bitcoin.sipa.be:8333" which I can otherwise ping through the console.

The issue is that I'm not getting a response after sending the initial Version Message to the remote Bitcoin node.

Does anyone have any points on debugging this ?



from Recent Questions - Bitcoin Stack Exchange https://ift.tt/Vlznxfi
via IFTTT

Popular posts from this blog

Future of Bitcoin encryption and security in a QC era

Possible rollback due to lazy reveal in BRC20?

A way to recover scammed Bitcoin investment