mempool-rebroadcaster
mempool-rebroadcaster bridges the Geth and Reth transaction pools, forwarding pending transactions in both directions so the two clients stay in sync.
Package
Section titled “Package”- Crate name:
mempool-rebroadcaster-bin - Binary name:
mempool-rebroadcaster - Source:
bin/mempool-rebroadcaster - Library:
crates/infra/mempool-rebroadcaster
Architecture
Section titled “Architecture”The rebroadcaster connects to both a Geth node and a Reth node, monitoring each transaction pool and forwarding new transactions to the other:
Geth txpool ←→ mempool-rebroadcaster ←→ Reth txpoolThis ensures that during the migration from Geth to Reth, or in hybrid deployments where both clients are running, transactions submitted to either node are visible to both. The service periodically polls both pools and rebroadcasts any transactions that are missing from the other.
Key Dependencies
Section titled “Key Dependencies”mempool-rebroadcaster— Core rebroadcasting logicclap— CLI argument parsingdotenvy— Environment variable loadingtracing/tracing-subscriber— Structured loggingtokio— Async runtime
cargo build --bin mempool-rebroadcaster --release./target/release/mempool-rebroadcaster [OPTIONS]