Module peer_utils

Source

Constantsยง

PROTOCOL_VERSION
The protocol version this implementation speaks.

Functionsยง

build_version_message ๐Ÿ”’
Build the version message used to perform the peer connection handshake, as described in the Bitcoin Wiki.
make_pong ๐Ÿ”’
Build the pong message, which must be sent whenever a peer sends us a ping. Note that the nonce received in the ping must be reused in the pong.