We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47fb15b commit 4205a87Copy full SHA for 4205a87
testnet/stacks-node/src/tests/signer/v0.rs
@@ -2322,6 +2322,12 @@ fn regr_use_block_header_pk() {
2322
for event in to_send.iter_mut() {
2323
// mutilate the signature
2324
event.modified_slots.iter_mut().for_each(|chunk_data| {
2325
+ if let Ok(SignerMessage::StateMachineUpdate(_)) =
2326
+ SignerMessage::consensus_deserialize(&mut chunk_data.data.as_slice())
2327
+ {
2328
+ // We don't want to mutate the state machine update messages
2329
+ return;
2330
+ };
2331
let pk = chunk_data.recover_pk().unwrap();
2332
assert_ne!(pk, bad_signer_pk);
2333
chunk_data.sign(&bad_signer).unwrap();
0 commit comments