mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
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. |
||
|---|---|---|
| .. | ||
| discovery.go | ||
| gentrie.go | ||
| gentrie_test.go | ||
| handler.go | ||
| handler_fuzzing_test.go | ||
| handler_test.go | ||
| handlers.go | ||
| metrics.go | ||
| peer.go | ||
| progress_test.go | ||
| protocol.go | ||
| range.go | ||
| range_test.go | ||
| sort_test.go | ||
| sync.go | ||
| sync_test.go | ||