Skip to content

Commit c87ade3

Browse files
committed
MessageSlotID::StateMachineUpdate
1 parent 4ea5e7a commit c87ade3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

libsigner/src/v0/messages.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ define_u8_enum!(
8282
/// the contract index in the signers contracts (i.e., X in signers-0-X)
8383
MessageSlotID {
8484
/// Block Response message from signers
85-
BlockResponse = 1
85+
BlockResponse = 1,
86+
/// Signer State Machine Update
87+
StateMachineUpdate = 2
8688
});
8789

8890
define_u8_enum!(
@@ -205,9 +207,9 @@ impl SignerMessage {
205207
Self::BlockProposal(_)
206208
| Self::BlockPushed(_)
207209
| Self::MockProposal(_)
208-
| Self::MockBlock(_)
209-
| Self::StateMachineUpdate(_) => None,
210+
| Self::MockBlock(_) => None,
210211
Self::BlockResponse(_) | Self::MockSignature(_) => Some(MessageSlotID::BlockResponse), // Mock signature uses the same slot as block response since its exclusively for epoch 2.5 testing
212+
Self::StateMachineUpdate(_) => Some(MessageSlotID::StateMachineUpdate),
211213
}
212214
}
213215
}

0 commit comments

Comments
 (0)