Bitcoin

Network – sendcmpct message

I’m trying to connect to a local testnet3 node using custom Rust code.

After the handshake, the node sends: sendcmpct This is a message according to BIP152. The message I received was

(11, 17, 9, 7, 115, 101, 110, 100, 99, 109, 112, 99, 116, 0, 0, 0, 9, 0, 0, 0, 233, 47, 94, 248)

where

11, 17, 9, 7 It’s a network

115, 101, 110, 100, 99, 109, 112, 99, 116, 0, 0, 0 Command (12 bytes).

9, 0, 0, 0 Length of the included payload (little endian).

and 233, 47, 94, 248 This is the checksum.

There are no other bytes in the message.

I also verified that the checksum is correct.

Why does the message declare a 9-byte payload (correctly according to the BIP), but the message has no actual payload?

Thanks for your help.

Related Articles

Back to top button