filter abandoned claims from those considered for early activation

This commit is contained in:
Jack Robison 2021-06-07 14:42:38 -04:00 committed by Victor Shyba
parent b0d2efd613
commit 9f0611f3d9

View file

@ -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