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

Realtime fetcher max gap #7393

Merged
merged 1 commit into from May 3, 2023
Merged

Realtime fetcher max gap #7393

merged 1 commit into from May 3, 2023

Conversation

Qwerty5Uiop
Copy link
Collaborator

@Qwerty5Uiop Qwerty5Uiop commented May 2, 2023

Motivation

There may be cases where a node may return inconsistent data. In such cases, the fetcher will treat the difference in the latest blocks as a real break in the data, which can cause it to do a huge amount of unnecessary work.

Changelog

Added max_gap parameter to realtime fetcher which may be modified via INDEXER_REALTIME_FETCHER_MAX_GAP env var. This parameter will be used as a max meaningful gap between consecutive latest blocks. If previous latest block differs from current by more than max_gap, the max value will be selected as a real latest number.

Docs update in blockscout/docs#149

@vbaranov vbaranov merged commit b98b782 into master May 3, 2023
16 checks passed
@vbaranov vbaranov deleted the realtime-fetcher-max-gap branch May 3, 2023 09:40
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.

None yet

2 participants