From 69651453ddd5c6de927505844e3d2eb2630c28ba Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 5 Jul 2021 11:37:45 -0400 Subject: [PATCH] missing channel_to_claim delete --- lbry/wallet/server/block_processor.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/lbry/wallet/server/block_processor.py b/lbry/wallet/server/block_processor.py index b542fa659..60725489d 100644 --- a/lbry/wallet/server/block_processor.py +++ b/lbry/wallet/server/block_processor.py @@ -691,11 +691,18 @@ class BlockProcessor: ) ]) if staged.signing_hash and claim_from_db: - self.db_op_stack.append(RevertableDelete( - *Prefixes.claim_to_channel.pack_item( - staged.claim_hash, staged.tx_num, staged.position, staged.signing_hash + self.db_op_stack.extend([ + RevertableDelete( + *Prefixes.channel_to_claim.pack_item( + staged.signing_hash, staged.name, staged.tx_num, staged.position, staged.claim_hash + ) + ), + RevertableDelete( + *Prefixes.claim_to_channel.pack_item( + staged.claim_hash, staged.tx_num, staged.position, staged.signing_hash + ) ) - )) + ]) def _expire_claims(self, height: int): expired = self.db.get_expired_by_height(height)