Skip to content

Refactor#151

Merged
bitmine-mihir merged 5 commits into
bitminetech:mainfrom
uink45:devnet-5
Jul 12, 2026
Merged

Refactor#151
bitmine-mihir merged 5 commits into
bitminetech:mainfrom
uink45:devnet-5

Conversation

@uink45

@uink45 uink45 commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

No description provided.

uink45 and others added 5 commits July 10, 2026 23:10
Large refactor: remove internal RLP module & tests and switch ENR handling to multibase/RLP-slice helpers; replace many ENR key/value fields with length-aware slices and tighten signature handling. Simplify genesis and validator config flow: remove validator registry, ranges/start_index/count fields, and use explicit indices arrays and validator_count; consolidate genesis state handling. Simplify client validator management (drop validator_enabled array, use local_validators[].disabled), backfill/root storage, and various sync/fork-choice fixes. Update libp2p/gossipsub interfaces, snappy framing logic, tests, and CMake to match changes. Submodule updated.
Refactor ENR/RLP, validator config, and client cleanup
Remove complex state reconstruction and vote caching infrastructure:

- Delete validator vote storage functions from LanternStore
- Remove off-head state replay/rebuild functionality
- Simplify fork choice to store states inline with blocks
- Remove storage persistence for finalized state and votes
- Remove raw SSZ byte passing from gossip/reqresp handlers
- Delete slot/head/checkpoint index storage
- Remove test_off_head_replay.c test file

These features added significant complexity to state management. Blocks now carry their post-states directly, eliminating the need for offline state reconstruction.
@bitmine-mihir bitmine-mihir merged commit 479146e into bitminetech:main Jul 12, 2026
5 checks passed
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