From 8d6c72371c0f731b38dc8a7b3de15c8a76e25030 Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Thu, 17 Oct 2024 17:58:45 +0800 Subject: [PATCH] fix(f3): port CertificateExchange.*PollInterval config from lotus (#4913) --- f3-sidecar/run.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/f3-sidecar/run.go b/f3-sidecar/run.go index f2d389e3921c..e2ed763ab6db 100644 --- a/f3-sidecar/run.go +++ b/f3-sidecar/run.go @@ -77,6 +77,8 @@ func run(ctx context.Context, rpcEndpoint string, jwt string, f3RpcEndpoint stri blockDelay := time.Duration(versionInfo.BlockDelay) * time.Second m.EC.Period = blockDelay m.CatchUpAlignment = blockDelay / 2 + m.CertificateExchange.MinimumPollInterval = blockDelay + m.CertificateExchange.MaximumPollInterval = 4 * blockDelay head, err := ec.GetHead(ctx) if err != nil {