def check_request_ordered(node, request: Request):
    for (seq_no, txn) in node.domainLedger.getAllTxn():
        if (get_req_id(txn) is None):
            continue
        if (get_from(txn) is None):
            continue
        if (get_req_id(txn) != request.reqId):
            continue
        if (get_from(txn) != request.identifier):
            continue
        return True
    raise ValueError('{} request not ordered by node {}'.format(request, node.name))
def check_request_ordered(node, request: Request):
    for (seq_no, txn) in node.domainLedger.getAllTxn():
        if (get_req_id(txn) is None):
            continue
        if (get_from(txn) is None):
            continue
        if (get_req_id(txn) != request.reqId):
            continue
        if (get_from(txn) != request.identifier):
            continue
        return True
    raise ValueError('{} request not ordered by node {}'.format(request, node.name))