Skip to content

Commit

Permalink
change deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
guy muroch committed May 23, 2024
1 parent 1e92a67 commit 2fea8e1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions exporter/api/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ type ParticipantsAPI struct {
Identifier []byte
ValidatorPK string
Role string

FullData *spectypes.ConsensusData
Message specqbft.Message
FullData *spectypes.ConsensusData
}

// NewDecidedAPIMsg creates a new message in an old format from the given message.
Expand Down Expand Up @@ -131,7 +131,13 @@ func ParticipantsAPIData(msgs ...qbftstorage.ParticipantsRangeEntry) (interface{
Identifier: msg.Identifier[:],
ValidatorPK: hex.EncodeToString(msg.Identifier.GetPubKey()),
Role: msg.Identifier.GetRoleType().String(),
FullData: &spectypes.ConsensusData{Duty: spectypes.Duty{Slot: msg.Slot}},
Message: specqbft.Message{
MsgType: specqbft.CommitMsgType,
Height: specqbft.Height(msg.Slot),
Identifier: msg.Identifier[:],
Round: specqbft.FirstRound,
},
FullData: &spectypes.ConsensusData{Duty: spectypes.Duty{Slot: msg.Slot}},
}

apiMsgs = append(apiMsgs, apiMsg)
Expand Down

0 comments on commit 2fea8e1

Please sign in to comment.