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

add el_offline to /eth/v1/node/syncing #4860

Merged
merged 2 commits into from
Apr 27, 2023
Merged

Conversation

etan-status
Copy link
Contributor

Add compatibility with ethereum/beacon-APIs#290 to the beacon node. Behaviour when configured with multiple ELs is not specified; intention suggests to indicate whether all ELs are offline.

Add compatibility with ethereum/beacon-APIs#290
to the beacon node. Behaviour when configured with multiple ELs is not
specified; intention suggests to indicate whether all ELs are offline.
@github-actions
Copy link

github-actions bot commented Apr 26, 2023

Unit Test Results

         9 files  ±0    1 071 suites  ±0   32m 35s ⏱️ -52s
  3 670 tests ±0    3 391 ✔️ ±0  279 💤 ±0  0 ±0 
15 653 runs  ±0  15 348 ✔️ ±0  305 💤 ±0  0 ±0 

Results for commit a713574. ± Comparison against base commit 1ccb36b.

♻️ This comment has been updated with latest results.

Comment on lines +271 to +272
if node.currentSlot().epoch() >= node.dag.cfg.CAPELLA_FORK_EPOCH:
some(not node.elManager.hasAnyWorkingConnection)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the concern here is that an old client may be strict about inclusion of this extra key.

Mostly theoretical, only gnosis / research, as capella shipped already

Copy link
Contributor

@zah zah Apr 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The API spec requires from the client to ignore unfamiliar fields and this field has some value even before the capella fork epoch, so I think it would be better to introduce the small risk of incompatibility here.

Copy link
Contributor Author

@etan-status etan-status Apr 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, out own VC has a history of not ignoring them. But I guess, those versions are incompatible with Capella based BN anyway.

Anyway, I'm fine with either, but for execution_optimistic there is a similar guard for bellatrix fork epoch, which is enforced across 3 different modules. I'd personally rather err on the consistent side of having the guard (and then remove them altogether if we decide that's the way to go), over having it sometimes but not other times.

If you strongly feel that the guard should be removed, I can remove it; I don't think that there are practical consequences from having it or not having it.

(followup PR, depending on your preference)

@etan-status etan-status merged commit dd1ffa5 into unstable Apr 27, 2023
@etan-status etan-status deleted the dev/etan/el-offline branch April 27, 2023 08:47
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