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

feat: improve semantics for returning reverted events to event API users #12585

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

aarshkshah1992
Copy link
Contributor

@aarshkshah1992 aarshkshah1992 commented Oct 11, 2024

For #12584.

-Event APIs should only returns reverted events if client has queries by block hash rather than epoch.

  • The Subscribe API should always return reverted events for an accurate observation of real time changes.

node/impl/full/eth.go Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@rvagg
Copy link
Member

rvagg commented Oct 11, 2024

Turned my long message into a PR: #12586 which we'll merge here shortly

@rvagg rvagg force-pushed the fix/get-logs-reverted-events branch 5 times, most recently from 0b053cc to 2fef9eb Compare October 11, 2024 10:01
aarshkshah1992 and others added 2 commits October 11, 2024 21:02
Apply suggestions from code review

Co-authored-by: Rod Vagg <[email protected]>
* subscribe-type calls always wants future reverts but only historical reverts
  when a tipset is specified
* get-type calls only want reverts when a tipset is specified

Add a new Fill() method to avoid the unnecessary install + remove step for get-
type calls.

Closes: #12584
@rvagg rvagg force-pushed the fix/get-logs-reverted-events branch from 2fef9eb to b4eb48b Compare October 11, 2024 10:02
Copy link
Member

@rvagg rvagg left a comment

Choose a reason for hiding this comment

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

I messed around with the commits, cleaned up the changelog, and it's good for a rebase merge now as is once tests pass

@rvagg rvagg merged commit 4ef0aed into master Oct 11, 2024
83 checks passed
@rvagg rvagg deleted the fix/get-logs-reverted-events branch October 11, 2024 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ☑️ Done (Archive)
Development

Successfully merging this pull request may close these issues.

3 participants