Skip to content

Commit

Permalink
Fix bug for check BMCLinkStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
byounggul kwon committed Jul 4, 2024
1 parent bd16f18 commit 3f1e862
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions common/link/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,15 @@ func (l *Link) buildProof(bu BlockUpdate) (int64, error) {
if bu != nil {
rs := l.getReceiveStatusForHeight(l.bls.Verifier.Height)
if rs == nil {
return 0, nil
seq = l.rss[len(l.rss)-1].Seq()
l.l.Debugf("[ReceiveStatusForHeight is null]BuildProof ReceiveStatus (height : %d, seq : %d)", l.rss[len(l.rss)-1].Height(), l.rss[len(l.rss)-1].Seq())
} else {
seq = rs.Seq()
l.l.Debugf("[ReceiveStatusForHeight is not null]BuildProof ReceiveStatus (height : %d, seq : %d)", rs.Height(), rs.Seq())
}
seq = rs.Seq()
} else {
seq = l.rss[len(l.rss)-1].Seq()
l.l.Debugf("[BlockUpdate is null]BuildProof ReceiveStatus (height : %d, seq : %d)", l.rss[len(l.rss)-1].Height(), l.rss[len(l.rss)-1].Seq())
}

for {
Expand Down

0 comments on commit 3f1e862

Please sign in to comment.