From d119fcfc980f0d8aee7c1aa0f6da2dcf4880f5c6 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Tue, 22 Jun 2021 17:29:21 -0400 Subject: [PATCH] remove debug prints --- lbry/wallet/server/db/revertable.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lbry/wallet/server/db/revertable.py b/lbry/wallet/server/db/revertable.py index 026f404b6..68a000b1f 100644 --- a/lbry/wallet/server/db/revertable.py +++ b/lbry/wallet/server/db/revertable.py @@ -87,21 +87,11 @@ class RevertableOpStack: self._items[op.key].pop() else: if op.is_put: - if op in self._items[op.key]: - # TODO: error - print("!! dup put", op) - # self._items[op.key].remove(op) - # assert op not in self._items[op.key], f"duplicate add for {op}" stored = self._get(op.key) if stored is not None: assert RevertableDelete(op.key, stored) in self._items[op.key], f"db op ties to add on top of existing key={op}" self._items[op.key].append(op) else: - if op in self._items[op.key]: - # TODO: error - print("!! dup delete ", op) - # self._items[op.key].remove(op) - # assert op not in self._items[op.key], f"duplicate delete for {op}" stored = self._get(op.key) if stored is not None and stored != op.value: assert RevertableDelete(op.key, stored) in self._items[op.key]