maxPayloadLength property
Get maximum payload length for this message type
Implementation
@override
int get maxPayloadLength {
// Max command length (12 bytes) + VarInt prefix (1 byte) +
// Code (1 byte) + Max reason length (256 bytes) + VarInt prefix (1 byte) +
// Hash (32 bytes)
return 12 + 1 + 1 + 256 + 1 + hashSize;
}