(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.
Set the block number up to which all events have been registered.
Set the block number up to which all events have been registered .
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)
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 )