@@ -715,25 +715,23 @@ impl Signer {
715
715
block : & NakamotoBlock ,
716
716
) -> Option < BlockResponse > {
717
717
// First update our global state evaluator with our local state if we have one
718
- let version = self . get_signer_protocol_version ( ) ;
718
+ let local_version = self . get_signer_protocol_version ( ) ;
719
719
if let Ok ( update) = self
720
720
. local_state_machine
721
- . try_into_update_message_with_version ( version )
721
+ . try_into_update_message_with_version ( local_version )
722
722
{
723
723
self . global_state_evaluator
724
724
. insert_update ( self . stacks_address , update) ;
725
725
} ;
726
- let Some ( latest_version) = self
727
- . global_state_evaluator
728
- . determine_latest_supported_signer_protocol_version ( )
729
- else {
726
+ let latest_version = self
727
+ . global_state_evaluator
728
+ . determine_latest_supported_signer_protocol_version ( )
729
+ . unwrap_or_else ( || {
730
730
warn ! (
731
- "{self}: No consensus on signer protocol version. Unable to validate block. Rejecting." ;
732
- "signer_signature_hash" => %block. header. signer_signature_hash( ) ,
733
- "block_id" => %block. block_id( ) ,
731
+ "{self}: No consensus on signer protocol version. Defaulting to local supported version: {local_version}"
734
732
) ;
735
- return Some ( self . create_block_rejection ( RejectReason :: NoSignerConsensus , block ) ) ;
736
- } ;
733
+ local_version
734
+ } ) ;
737
735
let state_version = SortitionStateVersion :: from_protocol_version ( latest_version) ;
738
736
if state_version. uses_global_state ( ) {
739
737
self . check_block_against_global_state ( stacks_client, block)
0 commit comments