maxPayloadLength property
Get maximum payload length for this message type
Implementation
@override
int get maxPayloadLength {
// Protocol version (4 bytes) +
// Max locator count (VarInt: 3 bytes) +
// Max locators (500 * 32 bytes) +
// Hash stop (32 bytes)
return 4 + 3 + (maxBlockLocatorsPerMsg * hashSize) + hashSize;
}