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

Add validation for start block number vs first streamable block of the chain #296

Conversation

colindickson
Copy link
Contributor

Added checks in blocks method of Tier1 service to ensure that the requested start block number is equal to or greater than the first streamable block of the chain. This prevents errors caused by invalid block number requests.

@maoueh
Copy link
Contributor

maoueh commented Sep 1, 2023

Looks good, please update the CHANGELOG (let's add other ones you fixed if they are still missing)

Copy link
Contributor

@maoueh maoueh left a comment

Choose a reason for hiding this comment

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

CHANGELOG missing

Added checks in blocks method of Tier1 service to ensure that the requested start block number is equal to or greater than the first streamable block of the chain. This prevents errors caused by invalid block number requests.
@colindickson colindickson force-pushed the 290-substreams-modules-initialblock-is-not-considered-as-the-chains-genesis-block branch from 6136c5a to a99d89b Compare September 2, 2023 18:57
@colindickson colindickson merged commit 1ec1e77 into develop Sep 2, 2023
3 checks passed
@colindickson colindickson deleted the 290-substreams-modules-initialblock-is-not-considered-as-the-chains-genesis-block branch September 2, 2023 19:12
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.

Substreams module's initialBlock is not considered as the chain's genesis block
2 participants