From bf539d67ea8496b4484fc45654e5b749666a8539 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 5 Jul 2021 11:39:10 -0400 Subject: [PATCH] update staged txo_to_claim after invalidating channel sig -fixes abandon of claim with invalidated signature and an update in same block --- lbry/wallet/server/block_processor.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lbry/wallet/server/block_processor.py b/lbry/wallet/server/block_processor.py index 60725489d..d22b09e48 100644 --- a/lbry/wallet/server/block_processor.py +++ b/lbry/wallet/server/block_processor.py @@ -668,6 +668,11 @@ class BlockProcessor: self.signatures_changed.add(claim_hash) if claim_hash in self.claim_hash_to_txo: claim = self.txo_to_claim[self.claim_hash_to_txo[claim_hash]] + self.txo_to_claim[self.claim_hash_to_txo[claim_hash]] = StagedClaimtrieItem( + claim.name, claim.claim_hash, claim.amount, claim.expiration_height, claim.tx_num, + claim.position, claim.root_tx_num, claim.root_position, False, + claim.signing_hash, claim.reposted_claim_hash + ) else: claim = self.db.get_claim_txo(claim_hash) assert claim is not None @@ -690,6 +695,7 @@ class BlockProcessor: ) ) ]) + if staged.signing_hash and claim_from_db: self.db_op_stack.extend([ RevertableDelete(