Skip to content
This repository was archived by the owner on Sep 8, 2026. It is now read-only.

Commit 70af457

Browse files
committed
Flatten node runtime files
1 parent 16c6668 commit 70af457

6 files changed

Lines changed: 16 additions & 81 deletions

File tree

reth/Dockerfile renamed to Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ WORKDIR /app
5151
COPY --from=reth-base /app/target/maxperf/base-consensus ./
5252
COPY --from=reth-base /app/target/maxperf/base-reth-node ./
5353
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
54-
COPY ./reth/reth-entrypoint ./execution-entrypoint
54+
COPY execution-entrypoint .
5555
COPY consensus-entrypoint .
5656

5757
CMD ["/usr/bin/supervisord"]

‎README.md‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,22 @@ The following are the hardware specifications we use in production:
7878

7979
### Optional Features
8080

81-
- Flashblocks: set `RETH_FB_WEBSOCKET_URL`
81+
- Flashblocks: set `RETH_FB_WEBSOCKET_URL`. When set, the execution client runs in Flashblocks mode; otherwise it runs in vanilla mode.
8282
- Follow mode: set `BASE_NODE_SOURCE_L2_RPC`
8383
- Pruning: set `RETH_PRUNING_ARGS`
8484

8585
For full configuration options, see `.env.mainnet` or `.env.sepolia`.
8686

87+
### Testing Flashblocks RPC Methods
88+
89+
When running in Flashblocks mode, you can query a pending block using the Flashblocks RPC:
90+
91+
```bash
92+
curl -X POST \
93+
--data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["pending", false],"id":1}' \
94+
http://localhost:8545
95+
```
96+
8797
## Snapshots
8898

8999
Snapshots are available to help you sync your node more quickly. See [docs.base.org](https://docs.base.org/chain/run-a-base-node#snapshots) for links and more details on how to restore from a snapshot.
@@ -92,12 +102,12 @@ Snapshots are available to help you sync your node more quickly. See [docs.base.
92102

93103
| Network | Status |
94104
| ------- | ------ |
95-
| Mainnet | Supported |
96-
| Testnet | Supported |
105+
| Mainnet | ✅ |
106+
| Testnet | ✅ |
97107

98108
## Troubleshooting
99109

100-
For support please join our [Discord](https://discord.gg/buildonbase) and post in `node-operators`. You can alternatively open a new GitHub issue.
110+
For support please join our [Discord](https://discord.gg/buildonbase) and post in `🛠|node-operators`. You can alternatively open a new GitHub issue.
101111

102112
## Disclaimer
103113

‎consensus-entrypoint‎

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -21,39 +21,6 @@ get_public_ip() {
2121
return 1
2222
}
2323

24-
fallback_env() {
25-
local target="$1"
26-
local source="$2"
27-
28-
if [[ -z "${!target:-}" && -n "${!source:-}" ]]; then
29-
export "$target=${!source}"
30-
fi
31-
}
32-
33-
if [[ -z "${BASE_NODE_NETWORK:-}" && -n "${OP_NODE_NETWORK:-}" ]]; then
34-
case "$OP_NODE_NETWORK" in
35-
base-mainnet)
36-
export BASE_NODE_NETWORK=base
37-
;;
38-
*)
39-
export BASE_NODE_NETWORK="$OP_NODE_NETWORK"
40-
;;
41-
esac
42-
fi
43-
44-
fallback_env BASE_NODE_L1_ETH_RPC OP_NODE_L1_ETH_RPC
45-
fallback_env BASE_NODE_L1_BEACON OP_NODE_L1_BEACON
46-
fallback_env BASE_NODE_L1_TRUST_RPC OP_NODE_L1_TRUST_RPC
47-
fallback_env BASE_NODE_L2_ENGINE_RPC OP_NODE_L2_ENGINE_RPC
48-
fallback_env BASE_NODE_P2P_LISTEN_IP OP_NODE_P2P_LISTEN_IP
49-
fallback_env BASE_NODE_P2P_ADVERTISE_TCP_PORT OP_NODE_P2P_LISTEN_TCP_PORT
50-
fallback_env BASE_NODE_P2P_ADVERTISE_UDP_PORT OP_NODE_P2P_LISTEN_UDP_PORT
51-
fallback_env BASE_NODE_P2P_BOOTNODES OP_NODE_P2P_BOOTNODES
52-
fallback_env BASE_NODE_LOG_FORMAT OP_NODE_LOG_FORMAT
53-
fallback_env BASE_NODE_METRICS_ENABLED OP_NODE_METRICS_ENABLED
54-
fallback_env BASE_NODE_METRICS_ADDR OP_NODE_METRICS_ADDR
55-
fallback_env BASE_NODE_METRICS_PORT OP_NODE_METRICS_PORT
56-
5724
if [[ -z "${BASE_NODE_NETWORK:-}" ]]; then
5825
echo "expected BASE_NODE_NETWORK to be set" 1>&2
5926
exit 1

‎docker-compose.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
x-node-build: &node-build
22
context: .
3-
dockerfile: reth/Dockerfile
3+
dockerfile: Dockerfile
44

55
services:
66
execution:

‎reth/README.md‎

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)