Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions ssv/committee.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,19 @@ func (c *Committee) ProcessMessage(signedSSVMessage *types.SignedSSVMessage) err
return errors.Wrap(err, "invalid PartialSignatureMessages")
}

if pSigMessages.Type == types.PostConsensusPartialSig {
runner, exists := c.Runners[pSigMessages.Slot]
if !exists {
return errors.New("no runner found for message's slot")
}
return runner.ProcessPostConsensus(pSigMessages)
if pSigMessages.Type != types.PostConsensusPartialSig {
return errors.New("no pre consensus phase for committee runner")
}

runner, exists := c.Runners[pSigMessages.Slot]
if !exists {
return errors.New("no runner found for message's slot")
}
return runner.ProcessPostConsensus(pSigMessages)

default:
return errors.New("unknown msg")
}
return nil

}

Expand Down
3 changes: 3 additions & 0 deletions ssv/spectest/all_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ var AllTests = []tests.TestF{
postconsensus.InvalidSignedMessageEmptySignature,
postconsensus.InvalidSignedMessageDifferentLength,
postconsensus.InvalidSignedMessageNoSigners,
postconsensus.NoPostConsensusPhase,

newduty.ConsensusNotStarted,
newduty.NotDecided,
Expand Down Expand Up @@ -118,6 +119,7 @@ var AllTests = []tests.TestF{
consensus.EmptySignature,
consensus.SignersAndSignaturesWithDifferentLength,
consensus.NilSSVMessage,
consensus.NoConsensusPhase,

synccommitteeaggregator.SomeAggregatorQuorum,
synccommitteeaggregator.NoneAggregatorQuorum,
Expand Down Expand Up @@ -161,6 +163,7 @@ var AllTests = []tests.TestF{
preconsensus.InvalidSignedMessageNoSignatures,
preconsensus.InvalidSignedMessageEmptySignature,
preconsensus.InvalidSignedMessageDifferentLength,
preconsensus.NoPreConsensusPhase,

valcheckduty.WrongValidatorIndex,
valcheckduty.WrongValidatorPK,
Expand Down

This file was deleted.

This file was deleted.

Loading