Skip to content

Commit ead38c1

Browse files
committed
Add block-maker, checker and espresso-dev-node.
1 parent 638c989 commit ead38c1

File tree

13 files changed

+571
-55
lines changed

13 files changed

+571
-55
lines changed

docker-compose.yml

Lines changed: 74 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
timeboost:
1313
ipv4_address: 172.20.0.11
1414
healthcheck:
15-
test: ["CMD", "curl", "-s", "-X", "POST", "--data", '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}', "-H", "Content-Type: application/json", "http://172.20.0.11:8545"]
15+
test: ["CMD", "curl", "-s", "-X", "POST", "--data", '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}', "-H", "Content-Type: application/json", "http://localhost:8545"]
1616
interval: 5s
1717
timeout: 3s
1818
retries: 10
@@ -33,12 +33,13 @@ services:
3333
"/app/timeboost",
3434
"--committee-id", "0",
3535
"--config", "node_0.toml",
36+
"--https-only", "false",
3637
]
3738
networks:
3839
timeboost:
3940
ipv4_address: 172.20.0.2
4041
environment:
41-
- RUST_LOG=timeboost=info,sailfish=info,cliquenet=info
42+
- RUST_LOG=timeboost=info,sailfish=warn,cliquenet=warn,timeboost-builder=debug,robusta=info,block_checker=info
4243
ports:
4344
- "8000:8000"
4445
- "8030:8001"
@@ -50,21 +51,20 @@ services:
5051
depends_on:
5152
deploy-test-contract:
5253
condition: service_completed_successfully
53-
nitro-dev:
54-
condition: service_healthy
5554
node1:
5655
image: timeboost:latest
5756
command:
5857
[
5958
"/app/timeboost",
6059
"--committee-id", "0",
6160
"--config", "node_1.toml",
61+
"--https-only", "false",
6262
]
6363
networks:
6464
timeboost:
6565
ipv4_address: 172.20.0.3
6666
environment:
67-
- RUST_LOG=timeboost=info,sailfish=info,cliquenet=info
67+
- RUST_LOG=timeboost=info,sailfish=warn,cliquenet=warn,timeboost-builder=debug,robusta=info,block_checker=info
6868
ports:
6969
- "8001:8000"
7070
- "8031:8001"
@@ -76,21 +76,20 @@ services:
7676
depends_on:
7777
deploy-test-contract:
7878
condition: service_completed_successfully
79-
nitro-dev:
80-
condition: service_healthy
8179
node2:
8280
image: timeboost:latest
8381
command:
8482
[
8583
"/app/timeboost",
8684
"--committee-id", "0",
8785
"--config", "node_2.toml",
86+
"--https-only", "false",
8887
]
8988
networks:
9089
timeboost:
9190
ipv4_address: 172.20.0.4
9291
environment:
93-
- RUST_LOG=timeboost=info,sailfish=info,cliquenet=info
92+
- RUST_LOG=timeboost=info,sailfish=warn,cliquenet=warn,timeboost-builder=debug,robusta=info,block_checker=info
9493
ports:
9594
- "8002:8000"
9695
- "8032:8001"
@@ -102,21 +101,20 @@ services:
102101
depends_on:
103102
deploy-test-contract:
104103
condition: service_completed_successfully
105-
nitro-dev:
106-
condition: service_healthy
107104
node3:
108105
image: timeboost:latest
109106
command:
110107
[
111108
"/app/timeboost",
112109
"--committee-id", "0",
113110
"--config", "node_3.toml",
111+
"--https-only", "false",
114112
]
115113
networks:
116114
timeboost:
117115
ipv4_address: 172.20.0.5
118116
environment:
119-
- RUST_LOG=timeboost=info,sailfish=info,cliquenet=info
117+
- RUST_LOG=timeboost=info,sailfish=warn,cliquenet=warn,timeboost-builder=debug,robusta=info,block_checker=info
120118
ports:
121119
- "8003:8000"
122120
- "8033:8001"
@@ -128,21 +126,20 @@ services:
128126
depends_on:
129127
deploy-test-contract:
130128
condition: service_completed_successfully
131-
nitro-dev:
132-
condition: service_healthy
133129
node4:
134130
image: timeboost:latest
135131
command:
136132
[
137133
"/app/timeboost",
138134
"--committee-id", "0",
139135
"--config", "node_4.toml",
136+
"--https-only", "false",
140137
]
141138
networks:
142139
timeboost:
143140
ipv4_address: 172.20.0.6
144141
environment:
145-
- RUST_LOG=timeboost=info,sailfish=info,cliquenet=info
142+
- RUST_LOG=timeboost=info,sailfish=warn,cliquenet=warn,timeboost-builder=warn,robusta=info,block_checker=info
146143
ports:
147144
- "8004:8000"
148145
- "8034:8001"
@@ -154,21 +151,41 @@ services:
154151
depends_on:
155152
deploy-test-contract:
156153
condition: service_completed_successfully
157-
nitro-dev:
158-
condition: service_healthy
159-
nitro-dev:
160-
image: offchainlabs/nitro-node:v3.2.1-d81324d
154+
block-maker:
155+
image: timeboost:latest
161156
ports:
162-
- "8547:8547"
157+
- "55000:55000"
158+
command:
159+
[
160+
"/app/block-maker",
161+
"--port", "55000",
162+
"--committee", "committee.toml",
163+
]
164+
environment:
165+
- RUST_LOG=info
163166
networks:
164167
timeboost:
165168
ipv4_address: 172.20.0.12
166-
command: --dev --http.addr 0.0.0.0 --http.api=net,web3,eth,debug
167-
healthcheck:
168-
test: ["CMD", "curl", "-s", "-X", "POST", "--data", '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}', "-H", "Content-Type: application/json", "http://localhost:8547"]
169-
interval: 5s
170-
timeout: 3s
171-
retries: 10
169+
block-checker:
170+
image: timeboost:latest
171+
command:
172+
[
173+
"/app/block-checker",
174+
"--config", "node_0.toml",
175+
"--committee", "committee.toml",
176+
"--committee-id", "0",
177+
"--blocks", "10000",
178+
"--https-only", "false",
179+
]
180+
environment:
181+
- RUST_BACKTRACE=1
182+
- RUST_LOG=trace
183+
networks:
184+
timeboost:
185+
ipv4_address: 172.20.0.15
186+
depends_on:
187+
deploy-test-contract:
188+
condition: service_completed_successfully
172189
yapper:
173190
image: timeboost:latest
174191
command:
@@ -181,11 +198,42 @@ services:
181198
networks:
182199
timeboost:
183200
ipv4_address: 172.20.0.13
184-
201+
espresso-dev-node:
202+
pid: host
203+
image: ghcr.io/espressosystems/espresso-sequencer/espresso-dev-node:latest
204+
ports:
205+
- "41000:41000"
206+
- "41003:41003"
207+
- "20000:20000"
208+
environment:
209+
- ESPRESSO_BUILDER_PORT=41003
210+
- ESPRESSO_DEPLOYER_ACCOUNT_INDEX=5
211+
- ESPRESSO_DEV_NODE_PORT=20000
212+
- ESPRESSO_SEQUENCER_API_PORT=41000
213+
- ESPRESSO_SEQUENCER_ETH_MNEMONIC=indoor dish desk flag debris potato excuse depart ticket judge file exit
214+
- ESPRESSO_SEQUENCER_L1_PROVIDER=http://172.20.0.11:8545
215+
- ESPRESSO_SEQUENCER_DATABASE_MAX_CONNECTIONS=25
216+
- ESPRESSO_DEV_NODE_EPOCH_HEIGHT=1000000
217+
- ESPRESSO_DEV_NODE_MAX_BLOCK_SIZE=10485760
218+
- ESPRESSO_SEQUENCER_STORAGE_PATH=/data/espresso
219+
- RUST_LOG=INFO
220+
- RUST_LOG_FORMAT
221+
- ESPRESSO_DEV_NODE_VERSION=0.4
222+
volumes:
223+
- espresso_storage:/data/espresso
224+
depends_on:
225+
demo-l1-network:
226+
condition: service_healthy
227+
networks:
228+
timeboost:
229+
ipv4_address: 172.20.0.14
185230
networks:
186231
timeboost:
187232
driver: bridge
188233
ipam:
189234
driver: default
190235
config:
191236
- subnet: 172.20.0.0/16
237+
238+
volumes:
239+
espresso_storage:

docker/timeboost.Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ COPY --from=builder /app/target/release/timeboost .
2828
COPY --from=builder /app/target/release/yapper .
2929
COPY --from=builder /app/target/release/register .
3030
COPY --from=builder /app/target/release/deploy .
31+
COPY --from=builder /app/target/release/block-maker .
32+
COPY --from=builder /app/target/release/block-checker .
3133
COPY --from=builder /app/scripts/deploy-contract-docker .
3234

3335
COPY --from=builder /app/test-configs/docker .
@@ -38,7 +40,7 @@ COPY --from=builder /root/.foundry/bin/cast /usr/local/bin/cast
3840
RUN chmod +x /usr/local/bin/forge /usr/local/bin/cast
3941

4042
# Set ownership of application files and make binary executable
41-
RUN chown -R timeboostuser:appgroup /app && chmod +x /app/timeboost /app/yapper /app/register /app/deploy /app/deploy-contract-docker
43+
RUN chown -R timeboostuser:appgroup /app && chmod +x /app/timeboost /app/yapper /app/register /app/deploy /app/deploy-contract-docker /app/block-maker /app/block-checker
4244

4345
# Switch to non-root user
4446
USER timeboostuser

geth-config/genesis-default.json

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,73 @@
4141
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
4242
"coinbase": "0x0000000000000000000000000000000000000000",
4343
"alloc": {
44-
"f39fd6e51aad88f6f4ce6ab8827279cfffb92266": {
44+
"f39Fd6e51aad88F6F4ce6aB8827279cffFb92266": {
45+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
46+
},
47+
"70997970C51812dc3A010C7d01b50e0d17dc79C8": {
48+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
49+
},
50+
"3C44CdDdB6a900fa2b585dd299e03d12FA4293BC": {
51+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
52+
},
53+
"90F79bf6EB2c4f870365E785982E1f101E93b906": {
54+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
55+
},
56+
"15d34AAf54267DB7D7c367839AAf71A00a2C6A65": {
57+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
58+
},
59+
"9965507D1a55bcC2695C58ba16FB37d819B0A4dc": {
60+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
61+
},
62+
"976EA74026E726554dB657fA54763abd0C3a0aa9": {
63+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
64+
},
65+
"14dC79964da2C08b23698B3D3cc7Ca32193d9955": {
66+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
67+
},
68+
"23618e81E3f5cdF7f54C3d65f7FBc0aBf5B21E8f": {
69+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
70+
},
71+
"a0Ee7A142d267C1f36714E4a8F75612F20a79720": {
72+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
73+
},
74+
"Bcd4042DE499D14e55001CcbB24a551F3b954096": {
75+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
76+
},
77+
"71bE63f3384f5fb98995898A86B02Fb2426c5788": {
78+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
79+
},
80+
"FABB0ac9d68B0B445fB7357272Ff202C5651694a": {
81+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
82+
},
83+
"1CBd3b2770909D4e10f157cABC84C7264073C9Ec": {
84+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
85+
},
86+
"dF3e18d64BC6A983f673Ab319CCaE4f1a57C7097": {
87+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
88+
},
89+
"cd3B766CCDd6AE721141F452C550Ca635964ce71": {
90+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
91+
},
92+
"2546BcD3c84621e976D8185a91A922aE77ECEc30": {
93+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
94+
},
95+
"bDA5747bFD65F08deb54cb465eB87D40e51B197E": {
96+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
97+
},
98+
"dD2FD4581271e230360230F9337D5c0430Bf44C0": {
99+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
100+
},
101+
"8626f6940E2eb28930eFb4CeF49B2d1F2C9C1199": {
102+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
103+
},
104+
"68fcab83Ef4F225a8CF789a8797C8079e6C97dc9": {
105+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
106+
},
107+
"5E1497dD1f08C87b2d8FE23e9AAB6c1De833D927": {
108+
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
109+
},
110+
"36561082951eed7ffD59cFD82D70570C57072d02": {
45111
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
46112
}
47113
},

0 commit comments

Comments
 (0)