Skip to content

Feat/proto array fork choice - #129

Open
bomanaps wants to merge 7 commits into
grandinetech:devnet-5-leanvm-mainfrom
bomanaps:feat/proto-array-fork-choice
Open

bomanaps wants to merge 7 commits into
grandinetech:devnet-5-leanvm-mainfrom
bomanaps:feat/proto-array-fork-choice

Conversation

@bomanaps

@bomanaps bomanaps commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Replaces the per-call LMD-GHOST recomputation (which rebuilt fork choice from the entire block map and re-expanded every vote bitfield on each tick and block apply, 3s per tick at devnet scale) with a proto-array incremental fork choice: blocks insert once, votes apply as deltas, the head is read off cached best-descendant pointers, and the array prunes at finalization. Head and safe-target selection are proven byte-identical to the previous algorithm by 400 randomized equivalence rounds against a verbatim port of the old code, kept in-tree as the test oracle.

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