Skip to content

Conversation

mh0lt
Copy link
Contributor

@mh0lt mh0lt commented Jul 10, 2025

These flags are redundant

--bor.milestone
--bor.waypoints
--polygon.sync

Their removal will cause a break for any command line with them set, but the fix is just to remove the flag.
This is safe as these flags are no longer used in the codebase.

@@ -125,7 +125,6 @@ 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", true, "Enable if Erigon has been synced using the new polygon sync component")
Copy link
Member

Choose a reason for hiding this comment

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

@mh0lt need to remove the polygonSync var too - otherwise it will be left as false and that will cause a regression (all rpcs will switch back to the old mode) - would suggest to get rid of the polygonSync checks in the rpcs too

@taratorio taratorio enabled auto-merge (squash) July 14, 2025 09:25
@taratorio taratorio merged commit dded863 into main Jul 14, 2025
15 checks passed
@taratorio taratorio deleted the remove_polygon_sync_flag branch July 14, 2025 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants