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:
parent
2a9e6473eb
commit
a408b113bc
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue