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

Block Stream Endpoint sometimes gives blocks before the requested block height #733

Open
Ayiga opened this issue Nov 13, 2024 · 0 comments

Comments

@Ayiga
Copy link
Member

Ayiga commented Nov 13, 2024

I don't have a consistent reproduction step for this at the moment. While developing the Inscriptions Demo, I noticed that I was receiving blocks before the block height I had requested. I treated this as an invariant in the logic and panic when I get blocks before what I am currently expecting.

As a result, I had to end up accounting for these unexpected blocks and skipping them when they do occur.

I believe the underlying cause might be related to the blocks that are currently available to the service in question. Perhaps if a request is made for a block that doesn't exist on that service yet, it instead returns what it does have, and just continue from there.

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

No branches or pull requests

1 participant