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 /eth/v1/beacon/deposit_snapshot for EIP-4881 #6038

Merged
merged 6 commits into from
Mar 8, 2024

Conversation

etan-status
Copy link
Contributor

Fix the /eth/v1/beacon/deposit_snapshot API to produce proper EIP-4881 compatible DepositTreeSnapshot responses. The endpoint used to expose a Nimbus-specific database internal format.

Also fix trusted node sync to consume properly formatted EIP-4881 data with --with-deposit-snapshot, and --finalized-deposit-tree-snapshot beacon node launch option to use the EIP-4881 data. Further ensure that ncli_testnet produces EIP-4881 formatted data for interoperability.

Fix the `/eth/v1/beacon/deposit_snapshot` API to produce proper EIP-4881
compatible `DepositTreeSnapshot` responses. The endpoint used to expose
a Nimbus-specific database internal format.

Also fix trusted node sync to consume properly formatted EIP-4881 data
with `--with-deposit-snapshot`, and `--finalized-deposit-tree-snapshot`
beacon node launch option to use the EIP-4881 data. Further ensure that
`ncli_testnet` produces EIP-4881 formatted data for interoperability.
@etan-status etan-status linked an issue Mar 7, 2024 that may be closed by this pull request
@etan-status
Copy link
Contributor Author

There is still an off-by-1 somewhere, i.e., nimbus reports a slightly older snapshot than https://checkpoint-sync.holesky.ethpandaops.io, but at least the format is fixed now.

@etan-status etan-status enabled auto-merge (squash) March 7, 2024 20:36
Copy link

github-actions bot commented Mar 8, 2024

Unit Test Results

         9 files  ±  0    1 113 suites  +3   22m 44s ⏱️ -28s
  4 240 tests +  5    3 893 ✔️ +  5  347 💤 ±0  0 ±0 
16 915 runs  +15  16 517 ✔️ +15  398 💤 ±0  0 ±0 

Results for commit 953bc9e. ± Comparison against base commit 816361e.

♻️ This comment has been updated with latest results.

@etan-status etan-status merged commit a0bc3ff into unstable Mar 8, 2024
13 checks passed
@etan-status etan-status deleted the dev/etan/el-snapshottests branch March 8, 2024 13:22
@tersec tersec mentioned this pull request Mar 8, 2024
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.

Fix Deposit Snapshot
1 participant