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

chore: disable eth_syncing check #97

Merged
merged 1 commit into from
Feb 14, 2023
Merged

Conversation

IvanVergiliev
Copy link
Contributor

Description

According to ethereum/go-ethereum#25534, the eth_syncing check doesn't seem to reflect useful information for the node gateway:

The eth_syncing is set to true by the downloader, when it downloads the N blocks it needs from peers. If you have fallen behind, that can be a pretty quick thing.
Just because "a higher block exists somewhere", that doesn't mean eth_syncing becomes set to true. We look only at the local behaviour: are we in a sync-cycle?

We've had this check cause flakes lately where a node is within the block lag limit, but it returns "syncing" so we stop routing requests to it. Relying on block lag only appears to be more accurate.

Not deleting the relevant logic for now in case we decide we do want to re-enable it at some point in the near future.

According to ethereum/go-ethereum#25534, the `eth_syncing` check doesn't seem to reflect useful information for the node gateway:

> The eth_syncing is set to true by the downloader, when it downloads the N blocks it needs from peers. If you have fallen behind, that can be a pretty quick thing.
> Just because "a higher block exists somewhere", that doesn't mean eth_syncing becomes set to true. We look only at the local behaviour: are we in a sync-cycle?

We've had this check cause flakes lately where a node is within the block lag limit, but it returns "syncing" so we stop routing requests to it. Relying on block lag only appears to be more accurate.

Not deleting the relevant logic for now in case we decide we do want to re-enable it at some point in the near future.
@IvanVergiliev IvanVergiliev merged commit 52279bf into main Feb 14, 2023
@IvanVergiliev IvanVergiliev deleted the disable-is-syncing-check branch February 14, 2023 18:23
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.

2 participants