Skip to content

feat: add simple RLP encode implementation#10

Merged
juanbono merged 9 commits into
mainfrom
implement_rlp
Jun 10, 2024
Merged

feat: add simple RLP encode implementation#10
juanbono merged 9 commits into
mainfrom
implement_rlp

Conversation

@juanbono
Copy link
Copy Markdown
Collaborator

@juanbono juanbono commented Jun 10, 2024

Motivation

This PR adds RLP encoding for many types.

Description

Closes #issue_number

@juanbono juanbono changed the title add simple RLP implementation feat: add simple RLP implementation Jun 10, 2024
@juanbono juanbono marked this pull request as ready for review June 10, 2024 19:58
@juanbono juanbono requested a review from a team as a code owner June 10, 2024 19:58
@juanbono juanbono changed the title feat: add simple RLP implementation feat: add simple RLP encode implementation Jun 10, 2024
Copy link
Copy Markdown
Collaborator

@MegaRedHand MegaRedHand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!!!

@juanbono juanbono merged commit 38e5006 into main Jun 10, 2024
@juanbono juanbono deleted the implement_rlp branch June 10, 2024 21:42
@juanbono juanbono self-assigned this Jun 29, 2024
@fedacking fedacking mentioned this pull request Feb 5, 2026
1 task
jason-h23 referenced this pull request in tokamak-network/ethrex Feb 25, 2026
Update roadmap, status, and execution order. Phase 9 now ~50% complete.
Feature #10 Continuous Benchmarking advances to ~50%. Next: C-2 (LLVM
provisioning) and B-3 (EIP-7928 BAL recording).
edg-l added a commit that referenced this pull request May 5, 2026
apply_trie_updates Phase 2 was sending FKVGeneratorControlMessage::Stop
and ::Continue on every commitable layer regardless of backend_kind.
For Mpt this coordinates with the running flatkeyvalue_generator. For
Binary/Transition the generator is either never running (Binary FKV is
populated inline by binary_commit_nodes_to_disk) or permanently stopped
at activation (Transition: stop_fkv_generator() in activate() step 2).
The post-activation path produced "Error while generating FlatKeyValue:
Unexpected Stop message" because the stopped generator was blocked at
mpt_wiring.rs:1085 waiting for Continue (per its PivotChanged protocol)
and instead received a 2nd Stop from Phase 2.

Cosmetic for chain progress (the let _ = ... ignores send errors and
the generator thread just exits), but a real protocol violation worth
silencing.

Fix: gate both fkv_ctl.send(Stop) and send(Continue) calls on
backend_kind == BackendKind::Mpt. Binary and Transition skip messaging
entirely.

Also add to phase-7-handoff.md:
- Bug 7 description and fix (FCU has_state_root MPT-only check, fixed
  in eea035e).
- Bug 8 description and fix (this commit).
- Bug 9 (open): gas mismatch at switch+21 on run #10. Distinct from
  Bug 6 family; suspect cross-block storage read returns stale value
  causing SSTORE net-gas-metering divergence. Diagnosis path noted.
- Known parity gap: binary trie should have a background FKV generator
  for full symmetry with MPT (out-of-scope for Phase 7/8; Phase 11+).

ethrex-storage 49/49, ethrex-blockchain 7/7 tests pass; workspace
cargo check clean.
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