Skip to content

block fetcher limit consts

Source (upstream pre-purge) Current
File eth/fetcher/block_fetcher.go block_fetcher_pow.go
Symbol maxUncleDist maxUncleDist
Ref f4d53133f~1 etc/v1.17.3-full-node

maxUncleDist, hashLimit, blockLimit

3-way merge — purge → getc ← upstream

pre-purge
const (
maxUncleDist = 7 // Maximum allowed backward distance from the chain head
maxQueueDist = 32 // Maximum allowed distance from the chain head to queue
hashLimit = 256 // Maximum number of unique blocks or headers a peer may have announced
blockLimit = 64 // Maximum number of unique blocks a peer may have delivered
)
core-geth validation — **Identical** ✅ | | | |---|---| | File | [`block_fetcher.go`](https://github.com/etclabscore/core-geth/blob/v1.12.20/eth/fetcher/block_fetcher.go) | | Symbol | `maxUncleDist` | | Ref | `v1.12.20` |

← Sync & Downloader