Skip to content

.: archival rebased on top of bal devnet 7#35160

Draft
gballet wants to merge 17 commits into
ethereum:bal-devnet-7from
gballet:archival-command-bal-7
Draft

.: archival rebased on top of bal devnet 7#35160
gballet wants to merge 17 commits into
ethereum:bal-devnet-7from
gballet:archival-command-bal-7

Conversation

@gballet

@gballet gballet commented Jun 12, 2026

Copy link
Copy Markdown
Member

No description provided.

@gballet gballet force-pushed the archival-command-bal-7 branch from ccf77e1 to 4a152aa Compare June 12, 2026 09:14
@gballet gballet changed the title archival rebased on top of bal devnet 7 .: archival rebased on top of bal devnet 7 Jun 12, 2026
@gballet gballet force-pushed the archival-command-bal-7 branch from 4a152aa to c5afdd8 Compare June 12, 2026 09:33
Co-authored-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com>
Co-authored-by: tellabg <249254436+tellabg@users.noreply.github.com>
…577)

The nodeHeight *fullNode case returned maxHeight+1 once the running max
height reached maxHeight via one child: the `if maxH+1 > maxHeight` guard
fired on the next hashNode child, reporting a genuine height-3 branch as
height 4. With the `height == 3` archival predicate this made dense,
branch-heavy tries (notably the account trie, whose height-3 nodes are
all multi-child branches) archive nothing, while only sparse,
extension-heavy storage tries archived anything.

On a jochemnet shadowfork (path scheme, ~379 GB live KV) a 15.5h `archive
generate` archived only 122,340 subtrees / 16.6 MB, and the account trie
archived nothing (count=0), with zero read/collection failures in the
log -- confirming a height computation bug rather than a read-path issue.

Replace the running-max guard with a depth-budget guard mirroring the
already-correct *shortNode case; keep the post-update `maxH > maxHeight`
exceeded check so recursion and raw-DB reads stay bounded.

Add trie/archiver_test.go: a height-3 root branch probes as height 3
(it returned 4 before this change).

Co-authored-by: CPerezz <claude.ai.monorail916@passmail.net>
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.

5 participants