@@ -18,6 +18,9 @@ update-submodules:
18
18
build_release * ARGS :
19
19
cargo build --release --workspace --all-targets {{ ARGS}}
20
20
21
+ build_release_until :
22
+ cargo build --release --workspace --all-targets --features " until"
23
+
21
24
build_docker :
22
25
docker build . -f ./ docker/ timeboost.Dockerfile -t timeboost:latest
23
26
docker build . -f ./ docker/ yapper.Dockerfile -t yapper:latest
@@ -102,6 +105,7 @@ mkconfig NUM_NODES DATETIME *ARGS:
102
105
- -http-api " 127.0.0.1:8004" \
103
106
- -chain-namespace 10101 \
104
107
- -parent-rpc-url " http://127.0.0.1:8545" \
108
+ - -parent-ws-url " ws://127.0.0.1:8545" \
105
109
- -parent-chain-id 31337 \
106
110
- -parent-ibox-contract " 0xa0f3a1a4e2b2bcb7b48c8527c28098f207572ec1" \
107
111
- -key-manager-contract " 0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35" \
@@ -117,6 +121,7 @@ mkconfig_docker DATETIME *ARGS:
117
121
- -mode " increment-address" \
118
122
- -chain-namespace 10101 \
119
123
- -parent-rpc-url " http://127.0.0.1:8545" \
124
+ - -parent-ws-url " ws://127.0.0.1:8545" \
120
125
- -parent-chain-id 31337 \
121
126
- -parent-ibox-contract " 0xa0f3a1a4e2b2bcb7b48c8527c28098f207572ec1" \
122
127
- -key-manager-contract " 0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35" \
@@ -132,6 +137,7 @@ mkconfig_nitro DATETIME *ARGS:
132
137
- -nitro-addr " localhost:55000" \
133
138
- -chain-namespace 412346 \
134
139
- -parent-rpc-url " http://127.0.0.1:8545" \
140
+ - -parent-ws-url " ws://127.0.0.1:8546" \
135
141
- -parent-chain-id 1337 \
136
142
- -parent-ibox-contract " 0xa0f3a1a4e2b2bcb7b48c8527c28098f207572ec1" \
137
143
- -key-manager-contract " 0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35" \
@@ -179,9 +185,53 @@ test-all: build_release build-test-utils
179
185
- -run " 3:scripts/deploy-test-contract test-configs/local/committee.toml http://localhost:8545" \
180
186
- -spawn " 4:target/release/block-maker --bind 127.0.0.1:55000 -c test-configs/local/committee.toml" \
181
187
- -spawn " 4:target/release/yapper -c test-configs/local/committee.toml" \
182
- - -spawn " 5:target/release/run-committee -c test-configs/local/ -t target/release/timeboost " \
188
+ - -spawn " 5:target/release/run-committee -c test-configs/local/" \
183
189
target/ release/ block-checker -- -c test-configs/ local -b 1000
184
190
191
+ test-dyn-comm : build_release_until build-test-utils
192
+ env RUST_LOG=sailfish=warn,timeboost=info,info target/ release/ run \
193
+ - -verbose \
194
+ - -timeout 120 \
195
+ - -spawn " 1:anvil --port 8545" \
196
+ - -run " 2:sleep 2" \
197
+ - -run " 3:scripts/deploy-test-contract test-configs/local/committee.toml http://localhost:8545" \
198
+ - -spawn " 4:target/release/run-committee -c test-configs/c0/ --until 2000" \
199
+ - -run " 5:target/release/mkconfig -n 4 \
200
+ --committee-id 1 \
201
+ --public-addr 127.0.0.1:9000 \
202
+ --internal-addr 127.0.0.1:9003 \
203
+ --http-api 127.0.0.1:9004 \
204
+ --chain-namespace 10101 \
205
+ --parent-rpc-url http://127.0.0.1:8545 \
206
+ --parent-ws-url ws://127.0.0.1:8545 \
207
+ --parent-chain-id 31337 \
208
+ --parent-ibox-contract 0xa0f3a1a4e2b2bcb7b48c8527c28098f207572ec1 \
209
+ --key-manager-contract 0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35 \
210
+ --timestamp +16s \
211
+ --stamp-dir /tmp \
212
+ --output test-configs/c1" \
213
+ - -run " 6:sleep 6" \
214
+ - -run " 7:target/release/register \
215
+ -a threshold-enc-key \
216
+ -m 'attend year erase basket blind adapt stove broccoli isolate unveil acquire category' \
217
+ -u http://localhost:8545 \
218
+ -k 0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35 \
219
+ -c test-configs/c0/committee.toml" \
220
+ - -run " 8:target/release/register \
221
+ -a new-committee \
222
+ -m 'attend year erase basket blind adapt stove broccoli isolate unveil acquire category' \
223
+ -u http://localhost:8545 \
224
+ -k 0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35 \
225
+ -c test-configs/c1/committee.toml" \
226
+ - -spawn " 9:target/release/yapper \
227
+ --config test-configs/c1/committee.toml \
228
+ --parent-url http://localhost:8545 \
229
+ --key-manager-contract 0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35" \
230
+ target/ release/ run-committee -- \
231
+ - c test-configs/ c1/ \
232
+ - -until 800 \
233
+ - -required-decrypt-rounds 3 && rm -rf test-configs/ c1
234
+
185
235
[linux ]
186
236
forward-ipv4 val : build-test-utils
187
237
{{ run_as_root}} target/ release/ net-setup system --forward-ipv4 {{ val}}
@@ -220,5 +270,5 @@ netsim: build_release build-test-utils
220
270
- -run " 3:scripts/deploy-test-contract test-configs/linux/committee.toml http://10.0.1.0:8545" \
221
271
- -spawn " 4:target/release/block-maker --bind 10.0.1.0:55000 -c test-configs/linux/committee.toml" \
222
272
- -spawn " 4:target/release/yapper -c test-configs/linux/committee.toml" \
223
- - -spawn-as-root " 5:target/release/run-committee -u $(id -u) -g $(id -g) -c test-configs/linux/ -t target/release/timeboost " \
273
+ - -spawn-as-root " 5:target/release/run-committee -u $(id -u) -g $(id -g) -c test-configs/linux/" \
224
274
target/ release/ block-checker -- -c test-configs/ linux -b 200
0 commit comments