Skip to content

Commit

Permalink
reverted it back
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusKysel committed Aug 22, 2024
1 parent ea820ac commit 39cc826
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion protocol/genesis/ssv/validator/msgqueue_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,17 @@ func (v *Validator) ConsumeQueue(logger *zap.Logger, msgID genesisspectypes.Mess
var runningInstance *instance.Instance
if runner.HasRunningDuty() {
runningInstance = runner.GetBaseRunner().State.RunningInstance
if runningInstance != nil {
decided, _ := runningInstance.IsDecided()
state.HasRunningInstance = !decided
}
}
state.Height = v.GetLastHeight(msgID)
state.Round = v.GetLastRound(msgID)
state.Quorum = v.Share.Quorum

filter := genesisqueue.FilterAny
if runningInstance == nil {
if !runner.HasRunningDuty() {
// If no duty is running, pop only ExecuteDuty messages.
filter = func(m *genesisqueue.GenesisSSVMessage) bool {
e, ok := m.Body.(*types.EventMsg)
Expand Down

0 comments on commit 39cc826

Please sign in to comment.