I have send my version message to a bitcoin node and the hexdump of his answer was this:
Maybe this is a network related question but I want to know the version used by this node and how did you come with it.
I have send my version message to a bitcoin node and the hexdump of his answer was this:
Maybe this is a network related question but I want to know the version used by this node and how did you come with it.
Easiest way to understand the response of other nodes IMO is using Wireshark and follow the below steps:
Install Wireshark
Capture packets according to the network you will be using on this system when Bitcoin full node connects with the network.
Launch Bitcoin Core
Stop capturing packets once the node is connected to few peers
Filter captured data in Wireshark with keyword "bitcoin"
Check the details of version
packet sent by other node
In the middle section you have all the details in readable format and last section is bytes view. Once you select any information in the middle section, relevant info will be highlighted in the byte view as the selected bytes.
According to my understanding, src/clientversion.cpp decides the version message in Bitcoin Core and src/init.cpp helps in sharing this information.
There is one more tool for conversion of such data but I have not used it enough. I think it can be helpful while experimenting with Bitcoin: https://github.com/gchq/CyberChef