Fix various dkg logs
This commit is contained in:
@@ -99,7 +99,7 @@ impl<R: RngCore + Clone> DkgController<R> {
|
||||
return;
|
||||
}
|
||||
if let Err(err) = self.state.is_consistent(epoch.state).await {
|
||||
error!("Epoch state is corrupted - {err}, the process should be terminated");
|
||||
debug!("Epoch state is corrupted - {err}. Awaiting for a DKG restart.");
|
||||
return;
|
||||
}
|
||||
let ret = match epoch.state {
|
||||
|
||||
@@ -133,7 +133,7 @@ impl ConsistentState for State {
|
||||
|
||||
fn proposal_id_value(&self) -> Result<u64, CoconutError> {
|
||||
self.proposal_id.ok_or(CoconutError::UnrecoverableState {
|
||||
reason: String::from("Proposal id should have benn set"),
|
||||
reason: String::from("Proposal id should have been set"),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ pub enum CoconutError {
|
||||
#[error("Failed to recover assigned node index: {reason}")]
|
||||
NodeIndexRecoveryError { reason: String },
|
||||
|
||||
#[error("Unrecoverable state: {reason}. Process should be restarted")]
|
||||
#[error("Unrecoverable state: {reason}")]
|
||||
UnrecoverableState { reason: String },
|
||||
|
||||
#[error("DKG has not finished yet in order to derive the coconut key")]
|
||||
|
||||
Reference in New Issue
Block a user