pub const MAX_MESSAGE_SIZE: u32 = 1024;Expand description
Maximum message size (1 KB) to prevent memory exhaustion attacks.
Real MinerMessage payloads are only a few hundred bytes (Ready, NewJob, JobResult). 1 KB provides sufficient headroom while minimizing the amplification attack surface.