Feat/14 mp 1 mempool data structure design #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CipherBFT Mempool Implementation Review
This document summarizes the CipherBFT mempool components implemented so far.
Implemented Components
1. CipherBftPool Wrapper
CipherBftPool– lib.rsA thin wrapper over the Reth transaction pool, delegating core pool logic and configuration to Reth.
2. BFT Policy Validation
add_transaction()– lib.rsPerforms CipherBFT-specific checks (minimum gas price, nonce gap) before forwarding transactions to the Reth pool.
3. Pool Configuration Mapping
MempoolConfig→PoolConfig– config.rsMaps CipherBFT’s
MempoolConfigto Reth’sPoolConfig, exposing price bump and replacement settings.4. Priority/Replacement Policy Example
Pool Instantiation Example – lib.rs (documented)
Provides an example of initializing the pool with Reth’s ordering (
CoinbaseTipOrdering) and replacement policy.5. Adapter: Pending/Queued Access
CipherBftPoolAdapter–crates/mempool/src/adapter.rsProvides helper APIs for batch selection and pending/queued access.
Architecture Overview
Component Status for CipherBFT Mempool
CipherBftPooladd_transaction()config.rslib.rs)adapter.rsUsage Flow Example
Next Steps