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

rename DepositTreeSnapshot -> DepositContractSnapshot #6036

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

etan-status
Copy link
Contributor

EIP-4881 was never correctly implemented, the DepositTreeSnapshot structure has nothing to do with its actual definition. Reflect that by renaming the type to a Nimbus-specific DepositContractSnapshot, so that an actual EIP-4881 implementation can use the correct names.

Notably, DepositTreeSnapshot contains a compressed sequence in finalized, only containing the minimally required intermediate roots.

That also explains the incorrect REST response reported in #5508.

The non-canonical representation was introduced in #4303 and is also persisted in the database. We'll have to maintain it for a while.

EIP-4881 was never correctly implemented, the `DepositTreeSnapshot`
structure has nothing to do with its actual definition. Reflect that
by renaming the type to a Nimbus-specific `DepositContractSnapshot`,
so that an actual EIP-4881 implementation can use the correct names.

- https://eips.ethereum.org/EIPS/eip-4881#specification

Notably, `DepositTreeSnapshot` contains a compressed sequence in
`finalized`, only containing the minimally required intermediate roots.

That also explains the incorrect REST response reported in #5508.

The non-canonical representation was introduced in #4303 and is also
persisted in the database. We'll have to maintain it for a while.
@tersec tersec mentioned this pull request Mar 7, 2024
@etan-status etan-status enabled auto-merge (squash) March 7, 2024 16:07
Copy link

github-actions bot commented Mar 7, 2024

Unit Test Results

         9 files  ±0    1 107 suites  ±0   28m 14s ⏱️ + 4m 39s
  4 233 tests ±0    3 886 ✔️ ±0  347 💤 ±0  0 ±0 
16 894 runs  ±0  16 496 ✔️ ±0  398 💤 ±0  0 ±0 

Results for commit d1c8a1d. ± Comparison against base commit 3b4b1cc.

@etan-status etan-status merged commit 50a43f3 into unstable Mar 7, 2024
13 checks passed
@etan-status etan-status deleted the dev/etan/rn-depositsnapshot branch March 7, 2024 17:42
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.

1 participant