Files
zooqueenandHanzo Dev fd97315c16 fix(rpc/zap): validate wire IDs via ids.ToID on client+server; guard negative MaxBlocksNum
Replaces copy(id[:], wireBytes) — which silently zero-pads/truncates a wrong-length field into a different ID — with the canonical length-validating ids.ToID/ToNodeID constructors, on both the server handlers (handleInitialize + 5 block-ID handlers) and the client response decoders (Initialize/BuildBlock/ParseBlock/GetBlock). Also rejects a negative MaxBlocksNum before it sizes a slice cap. Drops a dead nodeID var.

Co-authored-by: Hanzo Dev <[email protected]>
2026-06-06 18:52:28 -07:00
..