claim: don't re-calculate activeAt for those already active
This commit is contained in:
parent
feebb96caa
commit
385b5df6c8
1 changed files with 6 additions and 0 deletions
|
@ -226,7 +226,13 @@ func updateEffectiveAmounts(ht Height, claims, supports List) {
|
|||
func updateActiveHeights(n *Node, lists ...List) {
|
||||
for _, l := range lists {
|
||||
for _, v := range l {
|
||||
if v.ActiveAt < n.height {
|
||||
continue
|
||||
}
|
||||
v.ActiveAt = v.Accepted + calDelay(n.height, n.tookover)
|
||||
if v.ActiveAt < n.height {
|
||||
v.ActiveAt = n.height
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue