parameters: (self,
                   unconfirmed_head_number: int,
                   unconfirmed_head_hash: int,
                   confirmed_head_number,
                   confirmed_head_hash)
docstring: Set the block number up to which all events have been registered.
docstring_summary: Set the block number up to which all events have been registered.
docstring_tokens: Set the block number up to which all events have been registered .
function: def set_head(self,
                   unconfirmed_head_number: int,
                   unconfirmed_head_hash: int,
                   confirmed_head_number,
                   confirmed_head_hash):
          """Set the block number up to which all events have been registered."""
          assert unconfirmed_head_number > 0
          assert confirmed_head_number > 0
          assert confirmed_head_number < unconfirmed_head_number
          self.state.update_sync_state(unconfirmed_head_number=unconfirmed_head_number,
                                       unconfirmed_head_hash=unconfirmed_head_hash,
                                       confirmed_head_number=confirmed_head_number,
                                       confirmed_head_hash=confirmed_head_hash)
function_tokens: def set_head ( self , unconfirmed_head_number : int , unconfirmed_head_hash : int , confirmed_head_number , confirmed_head_hash ) : assert unconfirmed_head_number > 0 assert confirmed_head_number > 0 assert confirmed_head_number < unconfirmed_head_number self . state . update_sync_state ( unconfirmed_head_number = unconfirmed_head_number , unconfirmed_head_hash = unconfirmed_head_hash , confirmed_head_number = confirmed_head_number , confirmed_head_hash = confirmed_head_hash )