@@ -19,6 +19,9 @@ update-submodules:
19
19
build_release * ARGS :
20
20
cargo build --release --workspace --all-targets {{ ARGS}}
21
21
22
+ build_release_until :
23
+ cargo build --release --workspace --all-targets --features " until"
24
+
22
25
build_docker :
23
26
docker build . -f ./ docker/ timeboost.Dockerfile -t timeboost:latest
24
27
docker build . -f ./ docker/ yapper.Dockerfile -t yapper:latest
@@ -189,38 +192,40 @@ test-all: build_release build-test-utils
189
192
- -committee-id 0 \
190
193
- -blocks 1000
191
194
192
- test-dyn-comm : build_release build-test-utils
193
- env RUST_LOG=info target/ release/ run \
195
+ test-dyn-comm : build_release_until build-test-utils
196
+ env RUST_LOG=sailfish=warn,yapper= error ,timeboost=info, info target/ release/ run \
194
197
- -verbose \
195
198
- -timeout 120 \
196
199
- -spawn " 1:anvil --port 8545" \
197
200
- -run " 2:sleep 2" \
198
201
- -run " 3:scripts/deploy-test-contract" \
199
202
- -spawn " 4:target/release/yapper --keyset-file test-configs/c0/committee.toml" \
200
- - -spawn " 5:target/release/run-committee --configs test-configs/c0/ --committee 0" \
201
- - -run " 6:target/release/mkconfig -n 6 \
202
- --public-addr ' 127.0.0.1:9000' \
203
- --internal-addr ' 127.0.0.1:9003' \
204
- --http-api ' 127.0.0.1:9004' \
203
+ - -spawn " 5:target/release/run-committee --configs test-configs/c0/ --committee 0 --timeboost target/release/timeboost --until 1000 " \
204
+ - -run " 6:target/release/mkconfig -n 3 \
205
+ --public-addr 127.0.0.1:9000 \
206
+ --internal-addr 127.0.0.1:9003 \
207
+ --http-api 127.0.0.1:9004 \
205
208
--chain-namespace 10101 \
206
- --parent-rpc-url ' http://127.0.0.1:8545' \
207
- --parent-ws-url ' ws://127.0.0.1:8545' \
209
+ --parent-rpc-url http://127.0.0.1:8545 \
210
+ --parent-ws-url ws://127.0.0.1:8545 \
208
211
--parent-chain-id 31337 \
209
212
--parent-ibox-contract " 0xa0f3a1a4e2b2bcb7b48 c8527 c28098 f207572 ec1" \
210
213
--key-manager-contract " 0x2bbf15 bc655 c4cc157 b769 cfcb1ea9924 b9e1a35 " \
211
- --timestamp ' `just now-plus-20s`' \
212
- --stamp-dir ' /tmp' \
213
- --output ' test-configs/c1' " \
214
- - -run " 7:target/release/register -m 'attend year erase basket blind adapt stove broccoli isolate unveil acquire category' \
214
+ --timestamp `just now-plus-20s` \
215
+ --stamp-dir /tmp \
216
+ --output test-configs/c1" \
217
+ - -run " 7:target/release/register \
215
218
-i 0 \
216
- -u 'http://localhost:8545' \
217
- -k '0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35' \
218
- -c 'test-configs/c1/committee.toml'" \
219
- - -run " 8:pkill -9 yapper && target/release/yapper --keyset-file test-configs/c1/committee.toml" \
220
- target/ release/ run-committee --configs test-configs/ c1 \
219
+ -u http://localhost:8545 \
220
+ -k 0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35 \
221
+ -c test-configs/c1/committee.toml" \
222
+ - -run " 8:sleep 5" \
223
+ - -spawn " 9:target/release/yapper --keyset-file test-configs/c1/committee.toml" \
224
+ target/ release/ run-committee -- --configs test-configs/ c1/ \
221
225
- -committee 1 \
226
+ - -timeboost target/ release/ timeboost \
222
227
- -until 800 \
223
- - -required-decrypt-rounds 3 && rm -rf test-configs / c1
228
+ - -required-decrypt-rounds 3
224
229
225
230
226
231
# portable calculation of now() + 20s in "%Y-%m-%dT%H:%M:%SZ" format
0 commit comments