block fetcher timing consts¶
| Source (upstream pre-purge) | Current | |
|---|---|---|
| File | eth/fetcher/block_fetcher.go |
block_fetcher_pow.go |
| Symbol | lightTimeout |
lightTimeout |
| Ref | f4d53133f~1 |
etc/v1.17.3-full-node |
lightTimeout, arriveTimeout, gatherSlack, fetchTimeout
3-way merge — purge → getc ← upstream¶
pre-purge
↗const (
lightTimeout = time.Millisecond // Time allowance before an announced header is explicitly requested
arriveTimeout = 500 * time.Millisecond // Time allowance before an announced block/transaction is explicitly requested
gatherSlack = 100 * time.Millisecond // Interval used to collate almost-expired announces with fetches
fetchTimeout = 5 * time.Second // Maximum allotted time to return an explicitly requested block/transaction
)