Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make polygon.sync default #13376

Merged
merged 4 commits into from
Jan 15, 2025
Merged

Make polygon.sync default #13376

merged 4 commits into from
Jan 15, 2025

Conversation

mh0lt
Copy link
Contributor

@mh0lt mh0lt commented Jan 10, 2025

This PR changes the default flags for erigon to run astrid sync as the default for pos networks

@mh0lt mh0lt added the polygon label Jan 10, 2025
@mh0lt mh0lt marked this pull request as draft January 10, 2025 15:34
@@ -123,7 +123,7 @@ func RootCommand() (*cobra.Command, *httpcfg.HttpCfg) {
rootCmd.PersistentFlags().BoolVar(&cfg.GraphQLEnabled, "graphql", false, "enables graphql endpoint (disabled by default)")
rootCmd.PersistentFlags().Uint64Var(&cfg.Gascap, "rpc.gascap", 50_000_000, "Sets a cap on gas that can be used in eth_call/estimateGas")
rootCmd.PersistentFlags().Uint64Var(&cfg.MaxTraces, "trace.maxtraces", 200, "Sets a limit on traces that can be returned in trace_filter")
rootCmd.PersistentFlags().BoolVar(&polygonSync, "polygon.sync", false, "Enable if Erigon has been synced using the new polygon sync component")
rootCmd.PersistentFlags().BoolVar(&polygonSync, "polygon.sync", true, "Enable if Erigon has been synced using the new polygon sync component")
Copy link
Member

@taratorio taratorio Jan 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mh0lt I think we also need to set Value: true for the main --polygon.sync flag variable here https://github.com/erigontech/erigon/blob/main/cmd/utils/flags.go#L803-L806

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@mh0lt mh0lt marked this pull request as ready for review January 14, 2025 13:13
@taratorio taratorio enabled auto-merge (squash) January 15, 2025 15:09
@taratorio
Copy link
Member

closes #12840

@taratorio taratorio merged commit fa5e176 into main Jan 15, 2025
14 checks passed
@taratorio taratorio deleted the make_astrid_flags_default branch January 15, 2025 15:37
taratorio added a commit that referenced this pull request Jan 15, 2025
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants