Skip to content

Commit

Permalink
use domain from controller (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
GalRogozinski authored Jun 10, 2024
1 parent 46f5b01 commit 13e9467
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions ssv/committee_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,6 @@ func (cr CommitteeRunner) GetNetwork() Network {
return cr.network
}

func (cr CommitteeRunner) GetShare() *types.Share {
// TODO better solution for this
for _, share := range cr.BaseRunner.Share {
return share
}
return nil
}

func (cr CommitteeRunner) HasRunningDuty() bool {
return cr.BaseRunner.hasRunningDuty()
}
Expand Down Expand Up @@ -155,8 +147,7 @@ func (cr CommitteeRunner) ProcessConsensus(msg *types.SignedSSVMessage) error {

ssvMsg := &types.SSVMessage{
MsgType: types.SSVPartialSignatureMsgType,
MsgID: types.NewMsgID(cr.GetShare().DomainType, cr.GetBaseRunner().QBFTController.CommitteeMember.CommitteeID[:],
cr.BaseRunner.RunnerRoleType),
MsgID: types.MessageID(cr.GetBaseRunner().QBFTController.Identifier),
}
ssvMsg.Data, err = postConsensusMsg.Encode()
if err != nil {
Expand Down

0 comments on commit 13e9467

Please sign in to comment.