Skip to content

Commit c9dd982

Browse files
committed
Fix bug for build-proof
1 parent b511300 commit c9dd982

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

common/link/link.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,11 @@ func (l *Link) buildProof(bu BlockUpdate) (int64, error) {
364364
var mpLen int64
365365
var seq int64
366366
if bu != nil {
367-
seq = l.getReceiveStatusForHeight(l.bls.Verifier.Height).Seq()
367+
rs := l.getReceiveStatusForHeight(l.bls.Verifier.Height)
368+
if rs == nil {
369+
return 0, nil
370+
}
371+
seq = rs.Seq()
368372
} else {
369373
seq = l.rss[len(l.rss)-1].Seq()
370374
}

0 commit comments

Comments
 (0)