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

Always-on optimistic mode #4458

Merged
merged 1 commit into from
Jan 4, 2023
Merged

Always-on optimistic mode #4458

merged 1 commit into from
Jan 4, 2023

Conversation

arnetheduck
Copy link
Member

With #4420 implemented, the checks that we perform are equivalent to those of a SYNCING EL - as such, we can treat missing EL the same as SYNCING and proceed with an optimistic sync.

This mode of operation significantly speeds up recovery after an offline EL event because the CL is already synced and can immediately inform the EL of the latest head.

It also allows using a beacon node for consensus archival queries without an execution client.

  • deprecate --optimistic flag
  • log block details on EL error, soften log level because we can now continue to operate
  • UnviableFork -> Invalid when block hash verification fails - failed hash verification is not a fork-related block issue

With #4420 implemented, the
checks that we perform are equivalent to those of a `SYNCING` EL - as
such, we can treat missing EL the same as SYNCING and proceed with an
optimistic sync.

This mode of operation significantly speeds up recovery after an offline
EL event because the CL is already synced and can immediately inform the
EL of the latest head.

It also allows using a beacon node for consensus archival queries
without an execution client.

* deprecate `--optimistic` flag
* log block details on EL error, soften log level because we can now
continue to operate
* `UnviableFork` -> `Invalid` when block hash verification fails -
failed hash verification is not a fork-related block issue
@arnetheduck arnetheduck enabled auto-merge (squash) January 4, 2023 12:35
@arnetheduck arnetheduck merged commit 7c2ed5c into unstable Jan 4, 2023
@arnetheduck arnetheduck deleted the optimistic-on branch January 4, 2023 15:51
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