diff --git a/src/state_machine/coordinator/fire.rs b/src/state_machine/coordinator/fire.rs index 23ea4e8..25fe350 100644 --- a/src/state_machine/coordinator/fire.rs +++ b/src/state_machine/coordinator/fire.rs @@ -249,10 +249,7 @@ impl Coordinator { return Ok((None, None)); } State::DkgPublicDistribute => { - // XXX does this ever happen? start_dkg_round should call start_public_shares - //panic!("Got message in DkgPublicDistribute"); - let packet = self.start_public_shares(false)?; - return Ok((Some(packet), None)); + return Err(Error::BadStateChange("should never be in ephemeral DkgPublicDistribute during process_message loop".to_string())); } State::DkgPublicGather => { self.gather_public_shares(packet)?;