Skip to content

Commit 7a2166e

Browse files
authored
fix: set an address for authrpc to the op-rbuilder readme (#581)
This PR fixes the launch instructions for `op-rbuilder`, making the AuthRPC accessible on all network interfaces. This is necessary to allow `op-rbuilder` to be reachable from the virtual network interface created by Docker. Additionally, the metrics port has been changed to `9011`, since `9001` is used by `builder-playground` for the `beacon`: ``` go run main.go cook opstack --external-builder http://host.docker.internal:4444 2025/04/23 20:21:02 Log level: info 2025/04/23 20:21:02 Genesis block hash: 0x301f9f301f868d587fec26c2a1b5f7d9896736842ab1787923722c3213b61e05 true ========= Services started ========= - el (authrpc: 8551/8551, http: 8545/8545, rpc: 30303/30303) - beacon (http: 3500/3500, p2p: 9000/9000/udp, p2p: 9000/9001, quic-p2p: 9100/9100) - validator () - rollup-boost (authrpc: 8551/8552) - op-node (http: 8549/8549, metrics: 7300/7300, p2p: 9003/9003, p2p: 9003/9004/udp) - op-geth (authrpc: 8551/8553, http: 8545/8546, metrics: 6061/6061, rpc: 30303/30304, ws: 8546/8547) - op-batcher () ========= Output ========= - op-geth-enode: enode://3479db4d9217fb5d7a8ed4d61ac36e120b05d36c2eefb795dc42ff2e971f251a2315f5649ea1833271e020b9adc98d5db9973c7ed92d6b2f1f2223088c3d852f@127.0.0.1:30304?discport=0 ``` Trailing spaces have also been removed in some places.
1 parent e533420 commit 7a2166e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/op-rbuilder/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![CI status](https://github.com/flashbots/rbuilder/actions/workflows/checks.yaml/badge.svg?branch=develop)](https://github.com/flashbots/rbuilder/actions/workflows/integration.yaml)
44

55

6-
`op-rbuilder` is a Rust-based block builder designed to build blocks for the Optimism stack.
6+
`op-rbuilder` is a Rust-based block builder designed to build blocks for the Optimism stack.
77

88
## Running op-rbuilder
99

@@ -18,7 +18,7 @@ cargo run -p op-rbuilder --bin op-rbuilder --features flashblocks -- node \
1818
--chain /path/to/chain-config.json \
1919
--http \
2020
--authrpc.port 9551 \
21-
--authrpc.jwtsecret /path/to/jwt.hex
21+
--authrpc.jwtsecret /path/to/jwt.hex
2222
```
2323

2424
To build the op-rbuilder, run:
@@ -29,7 +29,7 @@ cargo build -p op-rbuilder --bin op-rbuilder --features optimism
2929

3030
## Observability
3131

32-
To verify whether a builder block has landed on-chain, you can add the `--rollup.builder-secret-key` flag or `BUILDER_SECRET_KEY` environment variable.
32+
To verify whether a builder block has landed on-chain, you can add the `--rollup.builder-secret-key` flag or `BUILDER_SECRET_KEY` environment variable.
3333
This will add an additional transaction to the end of the block from the builder key. The transaction will have `Block Number: {}` in the input data as a transfer to the zero address. Ensure that the key has sufficient balance to pay for the transaction at the end of the block.
3434

3535
To enable metrics, set the `--metrics` flag like in [reth](https://reth.rs/run/observability.html) which will expose reth metrics in addition to op-rbuilder metrics. op-rbuilder exposes on-chain metrics via [reth execution extensions](https://reth.rs/developers/exex/exex.html) such as the number of blocks landed and builder balance. Note that the accuracy of the on-chain metrics will be dependent on the sync status of the builder node. There are also additional block building metrics such as:
@@ -87,9 +87,9 @@ go run main.go cook opstack --external-builder http://host.docker.internal:4444
8787
cargo run -p op-rbuilder --bin op-rbuilder -- node \
8888
--chain $HOME/.playground/devnet/l2-genesis.json \
8989
--http --http.port 2222 \
90-
--authrpc.port 4444 --authrpc.jwtsecret $HOME/.playground/devnet/jwtsecret \
90+
--authrpc.addr 0.0.0.0 --authrpc.port 4444 --authrpc.jwtsecret $HOME/.playground/devnet/jwtsecret \
9191
--port 30333 --disable-discovery \
92-
--metrics 127.0.0.1:9001 \
92+
--metrics 127.0.0.1:9011 \
9393
--rollup.builder-secret-key ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \
9494
--trusted-peers enode://3479db4d9217fb5d7a8ed4d61ac36e120b05d36c2eefb795dc42ff2e971f251a2315f5649ea1833271e020b9adc98d5db9973c7ed92d6b2f1f2223088c3d852f@127.0.0.1:30304
9595
```

0 commit comments

Comments
 (0)