Fix various dkg logs

This commit is contained in:
Bogdan-Ștefan Neacșu
2023-02-27 16:21:40 +02:00
parent 9495d9821b
commit 329346d952
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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"),
})
}
}
+1 -1
View File
@@ -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")]