good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 4b897d67 authored by ledgerwatch's avatar ledgerwatch Committed by GitHub
Browse files

Reduce persistent link kept (#1969)

parent ba29249f
No related branches found
No related tags found
No related merge requests found
......@@ -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{}),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment