Skip to content

Commit f4cd726

Browse files
committed
CRC: move statemachineupdate todo message to SignerMessages instead of minerMessages
1 parent 7b56ed0 commit f4cd726

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

stacks-signer/src/v0/signer.rs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,17 @@ impl SignerTrait<SignerMessage> for Signer {
234234
);
235235
// try and gather signatures
236236
for message in messages {
237-
let SignerMessage::BlockResponse(block_response) = message else {
238-
continue;
239-
};
240-
self.handle_block_response(stacks_client, block_response, sortition_state);
237+
match message {
238+
SignerMessage::BlockResponse(block_response) => self.handle_block_response(
239+
stacks_client,
240+
block_response,
241+
sortition_state,
242+
),
243+
SignerMessage::StateMachineUpdate(_update) => {
244+
// TODO: should make note of this update view point to determine if there is an agreed upon global state
245+
}
246+
_ => {}
247+
}
241248
}
242249
}
243250
SignerEvent::MinerMessages(messages) => {
@@ -300,9 +307,6 @@ impl SignerTrait<SignerMessage> for Signer {
300307
self.mock_sign(mock_proposal.clone());
301308
}
302309
}
303-
SignerMessage::StateMachineUpdate(_update) => {
304-
// TODO: should make note of this update view point to determine if there is an agreed upon global state
305-
}
306310
_ => {}
307311
}
308312
}

0 commit comments

Comments
 (0)