Skip to content

Commit 8a227f1

Browse files
committed
reset the coordinator before every program execution
1 parent 8f5922b commit 8a227f1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

crates/stoffel-vm/src/bin/stoffel-run.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2712,7 +2712,7 @@ async fn main() {
27122712
.as_ref()
27132713
.expect("--wallet-sk required for on-chain coordinator");
27142714
let provider = on_chain::ws_connect(eth_addr, wallet).await;
2715-
let mut coord_instance =
2715+
let coord_instance =
27162716
on_chain::setup_coord(provider, contract, t as u64, 1, None).await;
27172717
let coord_for_rpc = coord_instance.coord();
27182718

@@ -2737,6 +2737,7 @@ async fn main() {
27372737

27382738
// Coordinator preprocessing trigger
27392739
if as_leader {
2740+
coord_instance.reset_coord().await.unwrap();
27402741
coord_instance.start_preprocessing().await.unwrap();
27412742
}
27422743
coord_instance.wait_for_round(Round::Preprocessing).await.unwrap();
@@ -2993,6 +2994,7 @@ async fn main() {
29932994
// Phase 1: Coordinator preprocessing trigger
29942995
if let Some(ref mut coord) = coord_opt {
29952996
if as_leader {
2997+
coord.reset_coord().await.unwrap();
29962998
coord.start_preprocessing().await.unwrap();
29972999
}
29983000
coord.wait_for_round(Round::Preprocessing).await.unwrap();

0 commit comments

Comments
 (0)