Skip to content

Commit fd4e42f

Browse files
committed
fix: force lsp to set from 0-0 INIT
1 parent 90889ca commit fd4e42f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

isaac/last_voteproofs.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,13 @@ func (l *LastVoteproofsHandler) Set(vp base.Voteproof) bool {
142142

143143
lvps := l.last
144144

145+
if lvps.ivp == nil && lvps.avp == nil && lvps.mvp == nil {
146+
initPoint := base.NewStagePoint(base.NewPoint(base.Height(0), base.Round(0)), base.StageINIT)
147+
if vp.Point() != initPoint {
148+
return false
149+
}
150+
}
151+
145152
if lvp := lvps.Cap(); lvp != nil {
146153
lp, err := NewLastPointFromVoteproof(lvp)
147154
if err != nil {

0 commit comments

Comments
 (0)