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

Comments

Popular posts from this blog

Do Kwon’s Detention Prolonged Until 2024 As Montenegro Responds To Extradition Requests

Sam Bankman-Fried Trial Begins Tomorrow: 3 Reasons Ex-SEC Official Foresees Conviction

Ethereum Price Plummets 9% As Fed Chair Passes Hawkish Remarks