Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 25 additions & 10 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,12 @@ services:
- "config:/config"
command: --conf.file /config/unsafe_staker_config.json
depends_on:
- sequencer
- redis
- validation_node
sequencer:
condition: service_started
redis:
condition: service_started
validation_node:
condition: service_healthy

poster:
pid: host # allow debugging
Expand Down Expand Up @@ -311,8 +314,10 @@ services:
- "config:/config"
command: --conf.file /config/validator_config.json --http.port 8547 --http.api net,web3,arb,debug --ws.port 8548
depends_on:
- sequencer
- validation_node
sequencer:
condition: service_started
validation_node:
condition: service_healthy

l3node:
pid: host # allow debugging
Expand All @@ -327,18 +332,28 @@ services:
- "config:/config"
command: --conf.file /config/l3node_config.json --http.port 3347 --http.api net,web3,arb,debug,eth --ws.port 3348
depends_on:
- sequencer
- validation_node
sequencer:
condition: service_started
validation_node:
condition: service_healthy

validation_node:
pid: host # allow debugging
image: nitro-node-dev-testnode
entrypoint: /usr/local/bin/nitro-val
entrypoint: /usr/local/bin/validator
ports:
- "127.0.0.1:8949:8549"
- "127.0.0.1:8949:4141"
volumes:
- "config:/config"
command: --conf.file /config/validation_node_config.json
environment:
- RUST_LOG=tower_http=debug,info
command: --address 0.0.0.0:4141 --root-path /home/user/target/machines
healthcheck:
test: ["CMD", "curl", "-sf", "-X", "POST", "-H", "Content-Type: application/json", "-d", '{"jsonrpc":"2.0","id":1,"method":"validation_name","params":[]}', "http://localhost:4141"]
interval: 5s
timeout: 3s
retries: 5
start_period: 5s

scripts:
build: scripts/
Expand Down
1 change: 0 additions & 1 deletion scripts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ function writeConfigs(argv: any) {
"block-validator": {
"validation-server": {
"url": argv.validationNodeUrl,
"jwtsecret": valJwtSecret,
}
},
"data-availability": createDataAvailabilityConfig(argv, argv.anytrust)
Expand Down
2 changes: 1 addition & 1 deletion scripts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function main() {
l1url: { string: true, default: "ws://geth:8546" },
l2url: { string: true, default: "ws://sequencer:8548" },
l3url: { string: true, default: "ws://l3node:3348" },
validationNodeUrl: { string: true, default: "ws://validation_node:8549" },
validationNodeUrl: { string: true, default: "http://validation_node:4141" },
l2owner: { string: true, default: "0x3f1Eae7D46d88F08fc2F8ed27FCb2AB183EB2d0E" },
committeeMember: { string: true, default: "not_set" },
})
Expand Down
Loading