Skip to content

Commit 9e56d2f

Browse files
committed
remove tmp c1 configs, disambiguate --committee-id flag
1 parent 2f2dda0 commit 9e56d2f

File tree

6 files changed

+12
-141
lines changed

6 files changed

+12
-141
lines changed

justfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ test-all: build_release build-test-utils
185185
--run "3:scripts/deploy-test-contract" \
186186
--spawn "4:target/release/block-maker --port 55000 --committee test-configs/local/committee.toml" \
187187
--spawn "4:target/release/yapper --keyset-file test-configs/local/committee.toml" \
188-
--spawn "5:target/release/run-committee --configs test-configs/local/ --committee 0 --timeboost target/release/timeboost" \
188+
--spawn "5:target/release/run-committee --configs test-configs/local/ --committee-id 0 --timeboost target/release/timeboost" \
189189
target/release/block-checker -- \
190190
--config test-configs/local/node_0.toml \
191191
--committee test-configs/local/committee.toml \
@@ -199,7 +199,7 @@ test-dyn-comm: build_release_until build-test-utils
199199
--spawn "1:anvil --port 8545" \
200200
--run "2:sleep 2" \
201201
--run "3:scripts/deploy-test-contract" \
202-
--spawn "4:target/release/run-committee --configs test-configs/c0/ --committee 0 --until 1600" \
202+
--spawn "4:target/release/run-committee --configs test-configs/c0/ --committee-id 0 --until 1600" \
203203
--run "5:target/release/mkconfig -n 4 \
204204
--public-addr 127.0.0.1:9000 \
205205
--internal-addr 127.0.0.1:9003 \
@@ -229,11 +229,11 @@ test-dyn-comm: build_release_until build-test-utils
229229
--key-manager-contract 0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35" \
230230
target/release/run-committee -- \
231231
--configs test-configs/c1/ \
232-
--committee 1 \
233-
--until 2000 \
234-
--required-decrypt-rounds 3
232+
--committee-id 1 \
233+
--until 1800 \
234+
--required-decrypt-rounds 3 && rm -rf test-configs/c1
235235

236-
# portable calculation of now() + 12s in "%Y-%m-%dT%H:%M:%SZ" format
236+
# portable calculation of now() + 20s in "%Y-%m-%dT%H:%M:%SZ" format
237237
[private]
238238
now-plus-20s:
239239
@python3 -c 'from datetime import datetime, timedelta, timezone; print((datetime.now(timezone.utc)+timedelta(seconds=20)).strftime("%Y-%m-%dT%H:%M:%SZ"))'

test-configs/c1/committee.toml

Lines changed: 0 additions & 25 deletions
This file was deleted.

test-configs/c1/node_0.toml

Lines changed: 0 additions & 35 deletions
This file was deleted.

test-configs/c1/node_1.toml

Lines changed: 0 additions & 35 deletions
This file was deleted.

test-configs/c1/node_2.toml

Lines changed: 0 additions & 35 deletions
This file was deleted.

test-utils/src/binaries/run-committee.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ struct Args {
1111
configs: PathBuf,
1212

1313
#[clap(long, short)]
14-
committee: u64,
14+
committee_id: u64,
1515

1616
#[clap(long, short, default_value = "target/release/timeboost")]
1717
timeboost: PathBuf,
@@ -54,15 +54,16 @@ async fn main() -> Result<()> {
5454
}
5555
let mut cmd = Command::new(args.timeboost.as_os_str());
5656
cmd.arg("--committee-id")
57-
.arg(args.committee.to_string())
58-
.arg("--committee")
59-
.arg(format!("{}/committee.toml", args.configs.to_str().unwrap()))
57+
.arg(args.committee_id.to_string())
6058
.arg("--config")
6159
.arg(entry.path())
6260
.arg("--ignore-stamp");
6361

6462
if let Some(until) = args.until {
65-
cmd.arg("--until").arg(until.to_string());
63+
cmd.arg("--committee")
64+
.arg(format!("{}/committee.toml", args.configs.to_str().unwrap()))
65+
.arg("--until")
66+
.arg(until.to_string());
6667
}
6768
if let Some(r) = args.required_decrypt_rounds {
6869
cmd.arg("--required-decrypt-rounds").arg(r.to_string());

0 commit comments

Comments
 (0)