Skip to content

Commit

Permalink
fix(oracle):open rounds on restart
Browse files Browse the repository at this point in the history
  • Loading branch information
leonz789 committed Dec 11, 2024
1 parent 990a5ff commit 32ac44c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x/oracle/keeper/aggregator/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,11 @@ func (agc *AggregatorContext) PrepareRoundEndBlock(block int64, forceSealed bool
round.status = roundStatusClosed
} else {
round.status = roundStatusOpen
if forceSealed {
round.status = roundStatusClosed
}
if left == 0 {
// set nonce for corresponding feederID for new roud start
newRoundFeederIDs = append(newRoundFeederIDs, feederIDUint64)
} else if forceSealed {
round.status = roundStatusClosed
}
}
agc.rounds[feederIDUint64] = round
Expand Down

0 comments on commit 32ac44c

Please sign in to comment.