def txtime(self, prob=None, length=1200): if prob is None: prob = self.prob() if prob == 0: return float('inf') else: return rates.tx_time(self.idx, length) / prob
def txtime_perfect(self, length=1200): return rates.tx_time(self.idx, length)