From 93a787801be70022ab6756bd6c0fd22b81c2c91a Mon Sep 17 00:00:00 2001 From: milen <94537774+taratorio@users.noreply.github.com> Date: Wed, 15 Jan 2025 16:14:52 +0000 Subject: [PATCH] backend: fix interface conversion: chain.BorConfig is nil (#13452) QA test failed after https://github.com/erigontech/erigon/pull/13376 with ``` !!->[EROR] [01-15|15:37:50.790] catch panic err="interface conversion: chain.BorConfig is nil, not *borcfg.BorConfig" stack="[main.go:46 panic.go:770 iface.go:262 iface.go:272 service.go:52 backend.go:983 node.go:143 main.go:98 make_app.go:71 command.go:276 app.go:333 app.go:307 main.go:51 proc.go:271 asm_amd64.s:1695]" *** - 2025-01-15 15:38:48 - Check failed: panic ``` https://github.com/erigontech/erigon/actions/runs/12791773578/job/35660649947 --- eth/backend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/backend.go b/eth/backend.go index af8ff662077..8cd97584fd6 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -979,7 +979,7 @@ func New(ctx context.Context, stack *node.Node, config *ethconfig.Config, logger }() } - if config.PolygonSync { + if chainConfig.Bor != nil && config.PolygonSync { backend.polygonSyncService = polygonsync.NewService( logger, chainConfig,