Bitcoin (and derived altcoins) use magic byte prefixes to identify their network messages and to distinguish between clients running on different networks/chains such as testnet or an altcoin. Does Monero use something similar? If so, what is the value, and where is the code that defines it?

In bitcoin, the value is 0xd9b4bef9 and it is defined at: https://github.com/bitcoin/bitcoin/blob/v0.16.1/src/chainparams.cpp#L115


Monero uses the Levin protocol for p2p comms. Similar question here.

The definitions for the commands are here.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.