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

eth_syncing returns incorrect start height #644

Open
peterargue opened this issue Oct 31, 2024 · 1 comment
Open

eth_syncing returns incorrect start height #644

peterargue opened this issue Oct 31, 2024 · 1 comment
Assignees
Labels
Bug Something isn't working Feedback

Comments

@peterargue
Copy link
Contributor

Problem

I was debugging a data issue with a partner and they resynced their node from genesis by deleting the db, and starting up with --init-cadence-height=211176670. After a few minutes of syncing, they queried eth_syncing, and the returned data showed the starting height as block 3. They were able to query blocks 0-2 and received data back, so it appears that there is an issue determining the start height.

@peterargue peterargue added Bug Something isn't working Feedback labels Oct 31, 2024
@m-Peter m-Peter self-assigned this Nov 12, 2024
@m-Peter
Copy link
Collaborator

m-Peter commented Nov 12, 2024

Good catch on this 👌
I was investigating this and found out that it happens from the way we bootstrap the various services.
First we start the Event Ingestion Engine, and then the API Server. The API Server will perform a query to the blocks DB, to find the latest indexed EVM height, so we can keep track at which EVM height we are starting, after a restart or deployment, or anything. But since we start the Event Ingestion Engine first, it means that we may have already indexed some new EVM blocks, hence the start height returned by eth_syncing will be off by a few heights.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Feedback
Projects
Status: No status
Development

No branches or pull requests

2 participants