Skip to content

Commit c8d8743

Browse files
committed
Remove panic in tests when deserializing the block proposal slot due to mock signing using it for mock proposals
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 62f5a6a commit c8d8743

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testnet/stacks-node/src/tests/nakamoto_integrations.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@ pub fn get_latest_block_proposal(
391391
let message: SignerMessageV0 =
392392
miners_stackerdb.get_latest(miner_slot_id.start).ok()??;
393393
let SignerMessageV0::BlockProposal(block_proposal) = message else {
394-
panic!("Expected a signer message block proposal. Got {message:?}");
394+
warn!("Expected a block proposal. Got {message:?}");
395+
return None;
395396
};
396397
block_proposal.block
397398
};

0 commit comments

Comments
 (0)