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