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

Fix startup blocking #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix startup blocking #34

wants to merge 1 commit into from

Conversation

josevazf
Copy link

This PR fixes a blocking that happens when running the indexer on a fresh start.

Why:

  • To fix the blocking on the forward and backfill syncs.

How:
After the chain is setup we force a new update with the last_block_number so that it doesn't get stuck in the previously defined start_block -1.

  • src/main.rs

Regarding the backfill, on a fresh start, the process was being stopped by a wrongly defined StopStrategy which is now updated to only consider the OnFinish which happens when running benchmarks.

  • src/sync/backfill.rs

@josevazf josevazf requested a review from naps62 October 11, 2024 08:45
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.

1 participant