filter abandoned claims from those considered for early activation

This commit is contained in:
Jack Robison 2021-06-07 14:42:38 -04:00
parent ce031dc6b8
commit adb188e5d0
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -1065,7 +1065,7 @@ class BlockProcessor:
if activated.claim_hash not in claim_exists: if activated.claim_hash not in claim_exists:
claim_exists[activated.claim_hash] = activated.claim_hash in self.pending_claim_txos or ( 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) 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] v = future_amount, activated, activated_txos[-1]
future_activations[activated.name][activated.claim_hash] = v future_activations[activated.name][activated.claim_hash] = v
@ -1076,6 +1076,8 @@ class BlockProcessor:
self.db.get_claim_txo(claim_hash) is not None) self.db.get_claim_txo(claim_hash) is not None)
if not claim_exists[claim_hash]: if not claim_exists[claim_hash]:
continue continue
if claim_hash in self.staged_pending_abandoned:
continue
for txo in activated: for txo in activated:
v = txo[1], PendingActivationValue(claim_hash, name), txo[0] v = txo[1], PendingActivationValue(claim_hash, name), txo[0]
future_activations[name][claim_hash] = v future_activations[name][claim_hash] = v