MaxSkeletonSize¶
| Source (upstream pre-purge) | Current | |
|---|---|---|
| File | eth/downloader/downloader.go |
downloader_pow.go |
| Symbol | MaxBlockFetch |
MaxSkeletonSize |
| Ref | 45baf2111~1 |
etc/v1.17.3-full-node |
Only MaxSkeletonSize retained from the original var block — rest live in upstream downloader.go. Used in fetchHeadersPoW to set the number of skeleton header fetches during initial sync.
3-way merge — purge → getc ← upstream¶
pre-purgecommon
core-geth validation — +1 -22
| | | |---|---| | File | [`downloader.go`](https://github.com/etclabscore/core-geth/blob/v1.12.20/eth/downloader/downloader.go) | | Symbol | `MaxBlockFetch` | | Ref | `v1.12.20` |--- a/core-geth/eth/downloader/downloader.go
+++ b/etc/eth/downloader/downloader_pow.go
@@ -1,24 +1,3 @@
var (
- MaxBlockFetch = 128 // Amount of blocks to be fetched per retrieval request
- MaxHeaderFetch = 192 // Amount of block headers to be fetched per retrieval request
- MaxSkeletonSize = 128 // Number of header fetches to need for a skeleton assembly
- MaxReceiptFetch = 256 // Amount of transaction receipts to allow fetching per request
-
- maxQueuedHeaders = 32 * 1024 // [eth/62] Maximum number of headers to queue for import (DOS protection)
- maxHeadersProcess = 2048 // Number of header download results to import at once into the chain
- maxResultsProcess = 2048 // Number of content download results to import at once into the chain
- fullMaxForkAncestry uint64 = vars.FullImmutabilityThreshold // Maximum chain reorganisation (locally redeclared so tests can reduce it)
- lightMaxForkAncestry uint64 = vars.LightImmutabilityThreshold // Maximum chain reorganisation (locally redeclared so tests can reduce it)
-
- reorgProtThreshold = 48 // Threshold number of recent blocks to disable mini reorg protection
- reorgProtHeaderDelay = 2 // Number of headers to delay delivering to cover mini reorgs
-
- fsHeaderCheckFrequency = 100 // Verification frequency of the downloaded headers during snap sync
- fsHeaderSafetyNet = 2048 // Number of headers to discard in case a chain violation is detected
- fsHeaderForceVerify = 24 // Number of headers to verify before and after the pivot to accept it
- fsHeaderContCheck = 3 * time.Second // Time interval to check for header continuations during state download
- fsMinFullBlocks = 64 // Number of blocks to retrieve fully even in snap sync
-
- maxTotalDifficultyDistance = 10 // Maximum amount of block difficulty units the master peer can lag behind w.r.t. other peers
- totalDifficultyContCheck = 13 * time.Second // Time interval to wait between total difficulty checks
+ MaxSkeletonSize = 128 // Number of header fetches needed for a skeleton assembly
)