From 115fd217e8776db18a20ccf019a5a9fe8b9be4d8 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 7 Sep 2022 10:53:35 -0400 Subject: [PATCH] fix trying to insert an effective amount for a new claim abandoned this block --- hub/scribe/service.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hub/scribe/service.py b/hub/scribe/service.py index 40737ff..40bed07 100644 --- a/hub/scribe/service.py +++ b/hub/scribe/service.py @@ -1314,6 +1314,7 @@ class BlockchainProcessorService(BlockchainService): for claim_hash, v in current_effective_amount_values.items() if v is not None ] claims = set(self.effective_amount_delta.keys()).union(self.active_support_amount_delta.keys()) + claims = claims.difference(self.abandoned_claims.keys()) new_effective_amounts = { claim_hash: ((current_effective_amounts.get(claim_hash, 0) or 0) + self.effective_amount_delta.get(claim_hash, 0), (current_supports_amount.get(claim_hash, 0) or 0) + self.active_support_amount_delta.get(claim_hash, 0))