Skip to content

mempool-rebroadcaster

mempool-rebroadcaster bridges the Geth and Reth transaction pools, forwarding pending transactions in both directions so the two clients stay in sync.

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 txpool

This 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.

  • mempool-rebroadcaster — Core rebroadcasting logic
  • clap — CLI argument parsing
  • dotenvy — Environment variable loading
  • tracing / tracing-subscriber — Structured logging
  • tokio — Async runtime
Terminal window
cargo build --bin mempool-rebroadcaster --release
Terminal window
./target/release/mempool-rebroadcaster [OPTIONS]