From 9f0611f3d960a3984a456fbdb85fd35c6cb1122c Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 7 Jun 2021 14:42:38 -0400 Subject: [PATCH] filter abandoned claims from those considered for early activation --- lbry/wallet/server/block_processor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lbry/wallet/server/block_processor.py b/lbry/wallet/server/block_processor.py index 8ac0d839e..3ddae77f6 100644 --- a/lbry/wallet/server/block_processor.py +++ b/lbry/wallet/server/block_processor.py @@ -1065,7 +1065,7 @@ class BlockProcessor: if activated.claim_hash not in claim_exists: claim_exists[activated.claim_hash] = activated.claim_hash in self.pending_claim_txos or ( self.db.get_claim_txo(activated.claim_hash) is not None) - if claim_exists[activated.claim_hash]: + if claim_exists[activated.claim_hash] and activated.claim_hash not in self.staged_pending_abandoned: v = future_amount, activated, activated_txos[-1] future_activations[activated.name][activated.claim_hash] = v @@ -1076,6 +1076,8 @@ class BlockProcessor: self.db.get_claim_txo(claim_hash) is not None) if not claim_exists[claim_hash]: continue + if claim_hash in self.staged_pending_abandoned: + continue for txo in activated: v = txo[1], PendingActivationValue(claim_hash, name), txo[0] future_activations[name][claim_hash] = v