def verify_prev_block(self, block: 'Block', prev_block: 'Block'):
    super().verify_prev_block(block, prev_block)
    prev_block_header: BlockHeader = prev_block.header
    block_header: BlockHeader = block.header
    if ((not block_header.complained) and prev_block_header.next_leader and (prev_block_header.next_leader != block_header.peer_id)):
        exception = RuntimeError(f'Block({block.header.height}, {block.header.hash.hex()}, Leader({block_header.peer_id.hex_xx()}), Expected({prev_block_header.next_leader.hex_xx()}).')
        self._handle_exception(exception)
def verify_prev_block(self, block: 'Block', prev_block: 'Block'):
    super().verify_prev_block(block, prev_block)
    prev_block_header: BlockHeader = prev_block.header
    block_header: BlockHeader = block.header
    if ((not block_header.complained) and prev_block_header.next_leader and (prev_block_header.next_leader != block_header.peer_id)):
        exception = RuntimeError(f'Block({block.header.height}, {block.header.hash.hex()}, Leader({block_header.peer_id.hex_xx()}), Expected({prev_block_header.next_leader.hex_xx()}).')
        self._handle_exception(exception)