Skip to content

Commit

Permalink
chore: setup CatchUpAlignment for f3-sidecar (#4867)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruseinov authored Oct 9, 2024
1 parent 31c969c commit fb90b8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion f3-sidecar/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ func run(ctx context.Context, rpcEndpoint string, f3RpcEndpoint string, initialP
if err != nil {
return err
}
m.EC.Period = time.Duration(versionInfo.BlockDelay) * time.Second

blockDelay := time.Duration(versionInfo.BlockDelay) * time.Second
m.EC.Period = blockDelay
m.CatchUpAlignment = blockDelay / 2

head, err := ec.GetHead(ctx)
if err != nil {
return err
Expand Down

0 comments on commit fb90b8b

Please sign in to comment.