From 32f7ecb26148c6dc1b334515b34c7888e2c65dea Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 6 May 2021 11:18:58 -0400 Subject: [PATCH] fix invalid claim fees breaking the block processor --- lbry/wallet/server/db/writer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lbry/wallet/server/db/writer.py b/lbry/wallet/server/db/writer.py index d4f3174ee..d4d541416 100644 --- a/lbry/wallet/server/db/writer.py +++ b/lbry/wallet/server/db/writer.py @@ -406,7 +406,8 @@ class SQLDB: if isinstance(fee.currency, str): claim_record['fee_currency'] = fee.currency.lower() if isinstance(fee.amount, Decimal): - claim_record['fee_amount'] = int(fee.amount*1000) + if fee.amount >= 0 and int(fee.amount*1000) < 9223372036854775807: + claim_record['fee_amount'] = int(fee.amount*1000) elif claim.is_repost: claim_record['claim_type'] = CLAIM_TYPES['repost'] claim_record['reposted_claim_hash'] = claim.repost.reference.claim_hash