Skip to content

Commit

Permalink
chore(nodebuilder/header): Update trusting period to two weeks
Browse files Browse the repository at this point in the history
  • Loading branch information
renaynay committed Sep 5, 2023
1 parent da8244e commit 616e092
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nodebuilder/header/constructors.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package header

import (
"context"
"time"

"github.com/libp2p/go-libp2p/core/host"
"github.com/libp2p/go-libp2p/core/peer"
Expand Down Expand Up @@ -68,6 +69,7 @@ func newSyncer[H libhead.Header[H]](
) (*sync.Syncer[H], *modfraud.ServiceBreaker[*sync.Syncer[H], H], error) {
syncer, err := sync.NewSyncer[H](ex, store, sub,
sync.WithParams(cfg.Syncer),
sync.WithTrustingPeriod(time.Hour*336),
sync.WithBlockTime(modp2p.BlockTime),
)
if err != nil {
Expand Down

0 comments on commit 616e092

Please sign in to comment.