A reth-based Ethereum execution node with flashblocks support.
cargo build --releaseThe binary is produced at ./target/release/ethgas-node.
just maxperfThe binary is produced at ./target/maxperf/ethgas-node.
Minimal node (no flashblocks):
./target/release/ethgas-node node \
--chain hoodi \
--http \
--http.api eth,net,web3With flashblocks enabled:
RUST_LOG=info,ethgas_reth_flashblocks=debug \
./target/release/ethgas-node node \
--chain hoodi \
--full \
--flashblocks-url ws://localhost:1111 \
--max-pending-blocks-depth 3 \
--flashblocks.ping-interval 30s \
--engine.persistence-threshold 0 \
--engine.memory-block-buffer-target 0 \
--authrpc.addr 0.0.0.0 \
--authrpc.port 8551 \
--http \
--http.api eth,net,web3| Flag | Description | Default |
|---|---|---|
--flashblocks-url <URL> |
WebSocket endpoint streaming flashblock updates (alias --websocket-url). Enables flashblocks when set. |
disabled |
--max-pending-blocks-depth <N> |
How many blocks the canonical tip can move past the first block of the pending state before the node drops that state. | 3 |
--flashblocks.ping-interval <DURATION> |
Interval between upstream websocket ping frames, and also the pong deadline: a reconnect is triggered once a ping goes unanswered for one interval, so a dead upstream is detected after at most two. Accepts humantime durations (500ms, 5s, 1m). Requires --flashblocks-url. |
2s |
--flashblocks.fee-max-age <DURATION> |
How long the builder's inclusion fee is served after its flashblock arrived, and at most until its block is sealed, by ethgas_inclusionPriorityFee, eth_maxPriorityFeePerGas, eth_gasPrice and eth_fillTransaction. Requires --flashblocks-url. |
15s |
--flashblocks.fee-ceiling <GWEI> |
The highest builder inclusion fee served, in gwei; a higher one gives way to the node's own suggestion. Requires --flashblocks-url. |
1000 |
When --flashblocks-url is set, requests with the pending block tag are
served from flashblock-derived state, and the following extra subscriptions are
available via eth_subscribe:
newFlashblocks— fires on every new flashblock with the current pending blockpendingLogs— logs from the latest flashblock matching a filternewFlashblockTransactions— transactions from the latest flashblock; acceptstrue(full tx + logs + gas), a log filter (full tx where any log matches), or no param orfalse(hashes only)newFlashblockBatches— one notification per flashblock with all the transactions it added, even when none match; accepts an optional log filter
| Flag | Description | Default |
|---|---|---|
--enable-simulator |
Starts the block simulator, which serves a relay's block simulation requests from this node's state. | disabled |
--simulator.blacklist-provider <URL> |
Endpoint the simulator fetches its address disallow list from, at start and every five minutes after. Requires --enable-simulator. |
http://localhost:3520/blacklist |
cargo test --workspace