def check_mempool(self, txhash, outcome):
    with mininode_lock:
        for c in self.connections:
            if (outcome is None):
                if (c.cb.lastInv != self.connections[0].cb.lastInv):
                    return False
            elif isinstance(outcome, RejectResult):
                if (txhash in c.cb.lastInv):
                    return False
                if (txhash not in c.cb.tx_reject_map):
                    logger.error(('Tx not in reject map: %064x' % txhash))
                    return False
                if (not outcome.match(c.cb.tx_reject_map[txhash])):
                    logger.error(('Tx rejected with %s instead of expected %s: %064x' % (c.cb.tx_reject_map[txhash], outcome, txhash)))
                    return False
            elif ((txhash in c.cb.lastInv) != outcome):
                return False
        return True
def check_mempool(self, txhash, outcome):
    with mininode_lock:
        for c in self.connections:
            if (outcome is None):
                if (c.cb.lastInv != self.connections[0].cb.lastInv):
                    return False
            elif isinstance(outcome, RejectResult):
                if (txhash in c.cb.lastInv):
                    return False
                if (txhash not in c.cb.tx_reject_map):
                    logger.error(('Tx not in reject map: %064x' % txhash))
                    return False
                if (not outcome.match(c.cb.tx_reject_map[txhash])):
                    logger.error(('Tx rejected with %s instead of expected %s: %064x' % (c.cb.tx_reject_map[txhash], outcome, txhash)))
                    return False
            elif ((txhash in c.cb.lastInv) != outcome):
                return False
        return True