Skip to content

Commit 5217daa

Browse files
authored
Fix haveNotFinalizedNotarizedRound method (#313)
* check for finalizations * go fmt
1 parent 90fbb7f commit 5217daa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

epoch.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2876,6 +2876,10 @@ func (e *Epoch) haveNotFinalizedNotarizedRound() (uint64, bool) {
28762876
var minRoundNum uint64
28772877
var found bool
28782878
for _, round := range e.rounds {
2879+
if round.finalization != nil || round.notarization == nil {
2880+
continue
2881+
}
2882+
28792883
if !found {
28802884
minRoundNum = round.num
28812885
found = true

0 commit comments

Comments
 (0)