mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 20:11:21 +00:00
Reduce persistent link kept (#1969)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
This commit is contained in:
parent
ba29249f07
commit
4b897d679f
@ -200,11 +200,12 @@ func NewHeaderDownload(
|
||||
linkLimit int,
|
||||
engine consensus.Engine,
|
||||
) *HeaderDownload {
|
||||
persistentLinkLimit := linkLimit / 16
|
||||
hd := &HeaderDownload{
|
||||
badHeaders: make(map[common.Hash]struct{}),
|
||||
anchors: make(map[common.Hash]*Anchor),
|
||||
persistedLinkLimit: linkLimit / 2,
|
||||
linkLimit: linkLimit / 2,
|
||||
persistedLinkLimit: persistentLinkLimit,
|
||||
linkLimit: linkLimit - persistentLinkLimit,
|
||||
anchorLimit: anchorLimit,
|
||||
engine: engine,
|
||||
preverifiedHashes: make(map[common.Hash]struct{}),
|
||||
|
Loading…
Reference in New Issue
Block a user