def __init__(self, max_size_in_cost: int):
    self.spends: Dict[(bytes32, MempoolItem)] = {}
    self.sorted_spends: SortedDict = SortedDict()
    self.additions: Dict[(bytes32, MempoolItem)] = {}
    self.removals: Dict[(bytes32, MempoolItem)] = {}
    self.max_size_in_cost: int = max_size_in_cost
    self.total_mempool_cost: int = 0
def __init__(self, max_size_in_cost: int):
    self.spends: Dict[(bytes32, MempoolItem)] = {}
    self.sorted_spends: SortedDict = SortedDict()
    self.additions: Dict[(bytes32, MempoolItem)] = {}
    self.removals: Dict[(bytes32, MempoolItem)] = {}
    self.max_size_in_cost: int = max_size_in_cost
    self.total_mempool_cost: int = 0