def get_min_fee_rate(self, cost: int) -> float:
    '\n        Gets the minimum fpc rate that a transaction with specified cost will need in order to get included.\n        '
    if self.at_full_capacity(cost):
        current_cost = self.total_mempool_cost
        for (fee_per_cost, spends_with_fpc) in self.sorted_spends.items():
            for (spend_name, item) in spends_with_fpc.items():
                current_cost -= item.cost
                if ((current_cost + cost) <= self.max_size_in_cost):
                    return fee_per_cost
        raise ValueError(f'Transaction with cost {cost} does not fit in mempool of max cost {self.max_size_in_cost}')
    else:
        return 0
Gets the minimum fpc rate that a transaction with specified cost will need in order to get included.
def get_min_fee_rate(self, cost: int) -> float:
    '\n        \n        '
    if self.at_full_capacity(cost):
        current_cost = self.total_mempool_cost
        for (fee_per_cost, spends_with_fpc) in self.sorted_spends.items():
            for (spend_name, item) in spends_with_fpc.items():
                current_cost -= item.cost
                if ((current_cost + cost) <= self.max_size_in_cost):
                    return fee_per_cost
        raise ValueError(f'Transaction with cost {cost} does not fit in mempool of max cost {self.max_size_in_cost}')
    else:
        return 0