Skip to content

Commit 8719f00

Browse files
committed
refactor: Align the states case in logs
1 parent 911388b commit 8719f00

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mithril-signer/src/runtime/state_machine.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ impl StateMachine {
158158
}
159159
SignerState::Unregistered { epoch } => {
160160
if let Some(new_epoch) = self.has_epoch_changed(*epoch).await? {
161-
info!("→ Epoch has changed, transiting to UNREGISTERED");
161+
info!("→ Epoch has changed, transiting to Unregistered");
162162
*state = self
163163
.transition_from_unregistered_to_unregistered(new_epoch)
164164
.await?;
@@ -174,7 +174,7 @@ impl StateMachine {
174174
info!("→ Epoch settings found");
175175
if epoch_settings.epoch >= *epoch {
176176
info!("new Epoch found");
177-
info!(" ⋅ transiting to REGISTERED");
177+
info!(" ⋅ transiting to Registered");
178178
*state = self
179179
.transition_from_unregistered_to_one_of_registered_states(
180180
epoch_settings,
@@ -193,7 +193,7 @@ impl StateMachine {
193193
}
194194
SignerState::RegisteredNotAbleToSign { epoch } => {
195195
if let Some(new_epoch) = self.has_epoch_changed(*epoch).await? {
196-
info!(" → new Epoch detected, transiting to UNREGISTERED");
196+
info!(" → new Epoch detected, transiting to Unregistered");
197197
*state = self
198198
.transition_from_registered_not_able_to_sign_to_unregistered(new_epoch)
199199
.await?;
@@ -207,7 +207,7 @@ impl StateMachine {
207207
last_signed_entity_type,
208208
} => match self.has_epoch_changed(*epoch).await? {
209209
Some(new_epoch) => {
210-
info!("→ Epoch has changed, transiting to UNREGISTERED");
210+
info!("→ Epoch has changed, transiting to Unregistered");
211211
*state = self
212212
.transition_from_ready_to_sign_to_unregistered(new_epoch)
213213
.await?;
@@ -269,7 +269,7 @@ impl StateMachine {
269269
}
270270
Some(certificate) if can_sign_signed_entity_type(self, &certificate).await => {
271271
info!(
272-
" ⋅ Epoch has NOT changed we can sign this certificate, transiting to READY_TO_SIGN";
272+
" ⋅ Epoch has NOT changed we can sign this certificate, transiting to ReadyToSign";
273273
"pending_certificate" => ?certificate,
274274
);
275275
ReadyToSignTransition::ToReadyToSign(certificate)

0 commit comments

Comments
 (0)