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.
This commit is contained in:
Thomas Zarebczan 2019-07-18 16:19:12 -04:00
parent 2a9e6473eb
commit a408b113bc

View file

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