From a408b113bcd22cee180cad075687891b036ad658 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Thu, 18 Jul 2019 16:19:12 -0400 Subject: [PATCH] fix: effective amount calc We don't care what the activate height is..that's kept track of separately. We may want to change the name of effective amount, but this doesn't change the understanding of it. If the takeover time had passed, the effective amount is set correctly. It's effective regardless of activation. --- lbry/lbry/wallet/server/db/writer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lbry/lbry/wallet/server/db/writer.py b/lbry/lbry/wallet/server/db/writer.py index f8aa93820..8eb6d3e2c 100644 --- a/lbry/lbry/wallet/server/db/writer.py +++ b/lbry/lbry/wallet/server/db/writer.py @@ -541,8 +541,7 @@ class SQLDB: if claim_hashes: self.execute( f"UPDATE claim SET effective_amount = amount + support_amount " - f"WHERE activation_height < {height} " - f" AND claim_hash IN ({','.join('?' for _ in claim_hashes)})", + f"WHERE claim_hash IN ({','.join('?' for _ in claim_hashes)})", claim_hashes )