-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: Events API enabled by default if EnableEthRPC is true #10077
Conversation
433723e
to
a5316dd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Direction LGTM.
node/config/types.go
Outdated
// EnableEthRPC enables APIs that can create and query filters for actor events as they are emitted. | ||
// DisableRealTimeFilterAPI will disable those APIs if you want to opt-out |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs
d3f0829
to
1a426ff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM just need to update the comments on the EventConfig
to correctly document the new Disable* values.
1a426ff
to
ee7d29c
Compare
node/config/def.go
Outdated
MaxFilters: 100, | ||
MaxFilterResults: 10000, | ||
MaxFilterHeightRange: 2880, // conservative limit of one day | ||
Events: EventsConfig{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hrm @raulk - I thought we agreed to move this section under FEVM
? then the rename make sense cuz its FEVM.Events?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I believe this makes sense for now. While the Events subsystem is technically independent of FEVM, this is a user-facing configuration file and I think it leads to better product usability for node operators if all the new options they care about are nested within the Fevm group. We might need to rejigger this when builtin-actors are emitting events or with Wasm actors, but we can cross that bridge when we get to it, because I expect changes in the event subsystem anyway.
ee7d29c
to
2894eb2
Compare
…ableEthRPC is set
2894eb2
to
6601d90
Compare
Related Issues
Proposed Changes
Sets a default path for the Events Database to be in the same directory as the tx hash database.
Enables all event API functionality if EnableEthRPC is set to true, otherwise it is always disabled.
Changes the Event Config to allow opt-out of these event APIs
Additional Info
Checklist
Before you mark the PR ready for review, please make sure that:
<PR type>: <area>: <change being made>
fix: mempool: Introduce a cache for valid signatures
PR type
: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, testarea
, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps