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

Move some of Fevm.Events.* config options to top-level Events #11679

Closed
rvagg opened this issue Mar 5, 2024 · 1 comment
Closed

Move some of Fevm.Events.* config options to top-level Events #11679

rvagg opened this issue Mar 5, 2024 · 1 comment

Comments

@rvagg
Copy link
Member

rvagg commented Mar 5, 2024

#11618 introduces an Events top-level, config option. Fevm.Events is full of items that are not FEVM-specific and should be moved:

  • DisableRealTimeFilterAPI
  • DisableHistoricFilterAPI
  • FilterTTL (needs a doc update)
  • MaxFilters (needs doc update)
  • MaxFilterResults
  • MaxFilterHeightRange
  • DatabasePath

My proposal is to copy all of these into the new top-level Events and do a reconcile at start-up, prioritising the new top-level version if set. If Fevm.Events.* items are set we'll print a warning to stdout (or via log). Then in a future breaking change, maybe next network version, we remove Fevm.Events entirely.

The blast-radius of changes is people using the Ethereum-compatible log subscription today, which I believe is relatively small. The risk with v1.26.0 if we don't get to this is that we have a new audience of oracle developers using generic actor events APIs who will have broken configs. So sooner than later would be good.

@rvagg rvagg added this to the Network v22 milestone Mar 7, 2024
@rjan90 rjan90 added this to FilOz Mar 8, 2024
@rjan90 rjan90 moved this to 🐱Todo in FilOz Mar 8, 2024
rvagg added a commit that referenced this issue Mar 8, 2024
Closes: #11679

* Introduce a `moved:"To.New.Config"` tag which prints a stderr warning when
  you use one of these, but will move any set value to the new location if the
	new location isn't already set itself.
* Look for `X is DEPRECATED` to hold certain fields back from documentation.
* Use `toml:"omitempty"` to prevent the default config output from having these
  deprecated values.
rvagg added a commit that referenced this issue Mar 8, 2024
Closes: #11679

* Introduce a `moved:"To.New.Config"` tag which prints a stderr warning when
  you use one of these, but will move any set value to the new location if the
	new location isn't already set itself.
* Look for `X is DEPRECATED` to hold certain fields back from documentation.
* Use `toml:"omitempty"` to prevent the default config output from having these
  deprecated values.
rvagg added a commit that referenced this issue Mar 11, 2024
Closes: #11679

* Introduce a `moved:"To.New.Config"` tag which prints a stderr warning when
  you use one of these, but will move any set value to the new location if the
	new location isn't already set itself.
* Look for `X is DEPRECATED` to hold certain fields back from documentation.
* Use `toml:"omitempty"` to prevent the default config output from having these
  deprecated values.
rvagg added a commit that referenced this issue Mar 11, 2024
Closes: #11679

* Introduce a `moved:"To.New.Config"` tag which prints a stderr warning when
  you use one of these, but will move any set value to the new location if the
	new location isn't already set itself.
* Look for `X is DEPRECATED` to hold certain fields back from documentation.
* Use `toml:"omitempty"` to prevent the default config output from having these
  deprecated values.
rvagg added a commit that referenced this issue Mar 11, 2024
Closes: #11679

* Introduce a `moved:"To.New.Config"` tag which prints a stderr warning when
  you use one of these, but will move any set value to the new location if the
	new location isn't already set itself.
* Look for `X is DEPRECATED` to hold certain fields back from documentation.
* Use `toml:"omitempty"` to prevent the default config output from having these
  deprecated values.
@rvagg rvagg closed this as completed Mar 13, 2024
@rvagg
Copy link
Member Author

rvagg commented Mar 13, 2024

#11698

@rjan90 rjan90 moved this from 🐱Todo to 🎉 Done in FilOz Mar 13, 2024
@rjan90 rjan90 moved this from 🎉 Done to ☑️Done (Archive) in FilOz Mar 13, 2024
rjan90 pushed a commit that referenced this issue Mar 22, 2024
Closes: #11679

* Introduce a `moved:"To.New.Config"` tag which prints a stderr warning when
  you use one of these, but will move any set value to the new location if the
	new location isn't already set itself.
* Look for `X is DEPRECATED` to hold certain fields back from documentation.
* Use `toml:"omitempty"` to prevent the default config output from having these
  deprecated values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ☑️ Done (Archive)
Development

No branches or pull requests

2 participants