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

Subscribe for events from a given block #83

Merged
merged 25 commits into from
Mar 28, 2024

Conversation

khssnv
Copy link
Member

@khssnv khssnv commented Mar 15, 2024

Allow events listening from a given (historical or future) block. Best block events will are on hold until the historical events sequentially processed. Default queue size is 20 000 blocks (source) which with 6 seconds block time gives us about 33 hours to process historical events before overflow. Also events listeners invocation made synchronous and a client may provide a callback function to call after all events listeners are done with a certain block events.

@khssnv khssnv force-pushed the feature/subscribe-for-events-from-block branch 2 times, most recently from 854ed49 to 792dd79 Compare March 15, 2024 13:16
@khssnv khssnv marked this pull request as draft March 15, 2024 13:16
@khssnv khssnv force-pushed the feature/subscribe-for-events-from-block branch from d30e293 to 6cb83df Compare March 20, 2024 13:20
@khssnv khssnv marked this pull request as ready for review March 21, 2024 07:33
blockchain/client.go Outdated Show resolved Hide resolved
blockchain/client.go Outdated Show resolved Hide resolved
blockchain/client.go Outdated Show resolved Hide resolved
@khssnv khssnv merged commit 1ebedce into master Mar 28, 2024
3 checks passed
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.

2 participants