Skip to content

Commit 3c84378

Browse files
committed
cleanup
1 parent 1be39db commit 3c84378

File tree

6 files changed

+23
-12
lines changed

6 files changed

+23
-12
lines changed

.github/workflows/push-docker-rollup-creator.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
tags:
66
# Match tags in the format YYYYMMDD
77
- "20[0-9][0-9][0-1][0-9][0-3][0-9]*"
8-
pull_request:
9-
branches:
10-
- "*"
118

129
concurrency:
1310
group: ${{ github.workflow }}-${{ github.ref }}
@@ -58,7 +55,7 @@ jobs:
5855
build-args: NITRO_CONTRACTS_BRANCH=v3.1.0
5956
file: ./docker/rollupcreator.Dockerfile
6057
platforms: linux/amd64
61-
push: ${{ github.event_name == 'pull_request' }}
58+
push: ${{ github.event_name != 'pull_request' }}
6259
tags: ${{ steps.meta.outputs.tags }}
6360
labels: ${{ steps.meta.outputs.labels }}
6461

@@ -77,7 +74,7 @@ jobs:
7774

7875
- name: Login to Github Container Repo
7976
uses: docker/login-action@v3
80-
if: github.event_name == 'pull_request'
77+
if: github.event_name != 'pull_request'
8178
with:
8279
registry: ghcr.io
8380
username: ${{ github.repository_owner }}
@@ -100,7 +97,7 @@ jobs:
10097
build-args: NITRO_CONTRACTS_BRANCH=v3.1.0
10198
file: ./docker/rollupcreator.Dockerfile
10299
platforms: linux/arm64
103-
push: ${{ github.event_name == 'pull_request' }}
100+
push: ${{ github.event_name != 'pull_request' }}
104101
tags: ${{ steps.meta.outputs.tags }}
105102
labels: ${{ steps.meta.outputs.labels }}
106103

@@ -134,11 +131,11 @@ jobs:
134131
with:
135132
tags: ghcr.io/espressosystems/timeboost/rollup-creator:${{steps.metadata.outputs.version}}
136133
inputs: ghcr.io/espressosystems/timeboost/rollup-creator@${{needs.build.outputs.digest}},ghcr.io/espressosystems/timeboost/rollup-creator@${{needs.build-arm.outputs.digest}}
137-
push: ${{ github.event_name == 'pull_request' }}
134+
push: ${{ github.event_name != 'pull_request' }}
138135

139136
- name: Create and push manifest images to latest
140137
uses: Noelware/docker-manifest-action@master
141138
with:
142139
tags: ghcr.io/espressosystems/timeboost/rollup-creator:latest
143140
inputs: ghcr.io/espressosystems/timeboost/rollup-creator@${{needs.build.outputs.digest}},ghcr.io/espressosystems/timeboost/rollup-creator@${{needs.build-arm.outputs.digest}}
144-
push: ${{ github.event_name == 'pull_request' }}
141+
push: ${{ github.event_name != 'pull_request' }}

docker-compose.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ services:
5454
- timeboost
5555
rollup-creator:
5656
pid: host
57-
image: ghcr.io/espressosystems/timeboost/rollup-creator:rollup-creator-round2
57+
image: ghcr.io/espressosystems/timeboost/rollup-creator:pr-529
5858
volumes:
5959
- "config:/config"
6060
environment:
@@ -70,7 +70,6 @@ services:
7070
PARENT_CHAIN_RPC: "http://demo-l1-network:8545"
7171
SEQUENCER_ADDRESS: 0x2F1eAe7Dd46D88f08fC2f8ED27Fcb2Ab183eb2d0
7272
WASM_MODULE_ROOT: 0xdb698a2576298f25448bc092e52cf13b1e24141c997135d70f217d674bbeb69a
73-
BATCH_POSTERS: 0x3f1eae7d46d88f08fc2f8ed27fcb2ab183eb2d0e
7473
command: ["create-rollup-testnode"]
7574
networks:
7675
- timeboost
@@ -191,7 +190,7 @@ services:
191190
command:
192191
- --conf.file=/nitro-config/sequencer_config.json
193192
- --node.seq-coordinator.my-url=http://nitro1:8547
194-
- --http.api=net,web3,eth,txpool,debug,timeboost,auctioneer
193+
- --http.api=net,web3,eth,txpool,debug,timeboost,auctioneer,batcher
195194
- --node.decentralized-timeboost-sequencer.block-retry-duration=0s
196195
- --node.decentralized-timeboost-sequencer.decentralized-timeboost-bridge-config.internal-timeboost-grpc-url=node1:8003
197196
- --node.batch-poster.parent-chain-wallet.private-key=d785ccfe237647fca51042e2083e085ec29201d5a39f5a61f0da5cab315799ac

nitro-config/sequencer_config.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@
4141
"enable": false
4242
},
4343
"decentralized-timeboost-sequencer": {
44-
"enable": true
44+
"enable": true,
45+
"hotshot-urls": [
46+
"http://espresso-dev-node:41000",
47+
"http://espresso-dev-node:41000"
48+
]
4549
},
4650
"decentralized-timeboost-delayed-sequencer": {
4751
"enable": true

test-configs/c0/committee.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ address = "127.0.0.1:8000"
1010
http_api = "127.0.0.1:8004"
1111
grpc_api = "127.0.0.1:8003"
1212
batch_poster_api = "127.0.0.1:8547"
13+
sig_key_address = "0x647ff873518108c6ae1e3b310bb6d68c72d369ab"
1314

1415
[[members]]
1516
node = "node_1"
@@ -20,6 +21,7 @@ address = "127.0.0.1:8010"
2021
http_api = "127.0.0.1:8014"
2122
grpc_api = "127.0.0.1:8013"
2223
batch_poster_api = "127.0.0.1:8557"
24+
sig_key_address = "0xd3ab3e193f9c438100f6aefa164a214b5be55379"
2325

2426
[[members]]
2527
node = "node_2"
@@ -30,6 +32,7 @@ address = "127.0.0.1:8020"
3032
http_api = "127.0.0.1:8024"
3133
grpc_api = "127.0.0.1:8023"
3234
batch_poster_api = "127.0.0.1:8567"
35+
sig_key_address = "0x92be0a723a8cf1c2e74c5c5ebd57625fd7b26bc5"
3336

3437
[[members]]
3538
node = "node_3"
@@ -40,6 +43,7 @@ address = "127.0.0.1:8030"
4043
http_api = "127.0.0.1:8034"
4144
grpc_api = "127.0.0.1:8033"
4245
batch_poster_api = "127.0.0.1:8577"
46+
sig_key_address = "0xa064549353fafd38f1000627acc581c9354b1cbe"
4347

4448
[[members]]
4549
node = "node_4"
@@ -50,3 +54,4 @@ address = "127.0.0.1:8040"
5054
http_api = "127.0.0.1:8044"
5155
grpc_api = "127.0.0.1:8043"
5256
batch_poster_api = "127.0.0.1:8587"
57+
sig_key_address = "0x9bfc8551ffd3a21f856490870f111051b1ef39ab"

timeboost-config/src/binaries/mkconfig.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ use std::num::NonZeroU8;
55
use std::path::PathBuf;
66
use std::str::FromStr;
77

8+
use alloy::consensus::crypto::secp256k1::public_key_to_address;
89
use alloy::eips::BlockNumberOrTag;
10+
use alloy::signers::k256::ecdsa::VerifyingKey;
911
use anyhow::{Result, bail};
1012
use ark_std::rand::SeedableRng as _;
1113
use clap::{Parser, ValueEnum};
@@ -288,6 +290,8 @@ impl Args {
288290
},
289291
};
290292

293+
let pub_key = VerifyingKey::from_sec1_bytes(&config.keys.signing.public.to_bytes())?;
294+
291295
members.push(CommitteeMember {
292296
node: format!("node_{i}"),
293297
signing_key: config.keys.signing.public,
@@ -309,6 +313,7 @@ impl Args {
309313
.map(|a| a.with_offset(GRPC_API_PORT_OFFSET))
310314
})
311315
.unwrap_or_else(|| bind_addr.clone().with_offset(GRPC_API_PORT_OFFSET)),
316+
sig_key_address: public_key_to_address(pub_key),
312317
});
313318

314319
let mut node_config_file = File::create(self.output.join(format!("node_{i}.toml")))?;

timeboost-config/src/committee.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ pub struct CommitteeMember {
2626
pub http_api: Address,
2727
pub grpc_api: Address,
2828
pub batch_poster_api: Address,
29+
pub sig_key_address: alloy::primitives::Address,
2930
}
3031

3132
impl CommitteeConfig {

0 commit comments

Comments
 (0)