go-ethereum/eth/protocols
ozpool 5dbf26db90 eth/protocols/snap: address review — if-else guard, tighten path limit to 32
Per review on #34854:

- Refactor the path-length guard to if-else style (no append-nil-and-break);
  the trie traversal lives in the else branch.
- Tighten maxTrieNodePathLength from 33 to 32 bytes. The theoretical
  compact-encoded upper bound is 33 bytes (64 nibbles + 1 prefix byte), but
  in an MPT the value node is always embedded in its parent and is never
  addressed as a standalone node, so the hexary path length is at most 63
  nibbles and the compact encoding never exceeds 32 bytes.
- Update test comment to reflect the 32-byte real-world cap.
2026-05-13 12:08:14 +05:30
..
eth core, eth/protocols/snap: Snap/2 Protocol + BAL Serving (#34083) 2026-04-03 14:10:32 +08:00
snap eth/protocols/snap: address review — if-else guard, tighten path limit to 32 2026-05-13 12:08:14 +05:30