Skip to content

Commit

Permalink
backend: fix interface conversion: chain.BorConfig is nil (#13452)
Browse files Browse the repository at this point in the history
QA test failed after #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
  • Loading branch information
taratorio authored Jan 15, 2025
1 parent ba25a32 commit 93a7878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 93a7878

Please sign in to comment.