def METHOD_NAME(self, expected_hash, node):
    headers_msg = node.last_message.get("headers")
    return (headers_msg and
            headers_msg.headers and
            headers_msg.headers[0].rehash() == expected_hash)