Skip to main content

MAX_HANDSHAKE_BODY_LEN

Constant MAX_HANDSHAKE_BODY_LEN 

Source
const MAX_HANDSHAKE_BODY_LEN: usize = 1024;
Expand description

The maximum body length allowed before the handshake completes.

Version messages are ~344 bytes max (including a 256-byte user agent); verack is 0 bytes. 1 KB provides headroom for future protocol changes.