//! Message framing constants and payload checksum (first 4 bytes of double-SHA256).
use ;
/// Bitcoin P2P message header size (magic + command + length + checksum)
pub const MESSAGE_HEADER_SIZE: usize = 4 + 12 + 4 + 4;
/// Maximum message payload size (32 MB)
pub const MAX_MESSAGE_PAYLOAD: usize = 32 * 1024 * 1024;
/// Calculate checksum for message payload (first 4 bytes of double SHA256)