def test_function():
    last_headers = self.last_message.get('headers')
    if (not last_headers):
        return False
    return (last_headers.headers[0].rehash() == blockhash)
def test_function():
    last_headers = self.last_message.get('headers')
    if (not last_headers):
        return False
    return (last_headers.headers[0].rehash() == blockhash)