Skip to content

Commit

Permalink
removed assert that leads to hardcrash for synckeygen
Browse files Browse the repository at this point in the history
  • Loading branch information
SurfingNerd committed Oct 1, 2024
1 parent 68acf28 commit 47e5b6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/ethcore/src/engines/hbbft/hbbft_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ impl HbbftState {
}
};

assert!(synckeygen.is_ready());
if !synckeygen.is_ready() {
error!(target: "engine", "Synckeygen not ready when it should be!");
return None;
}

let (pks, sks) = synckeygen.generate().ok()?;
self.public_master_key = Some(pks.public_key());
Expand Down

0 comments on commit 47e5b6c

Please sign in to comment.