@@ -24,14 +24,17 @@ const (
2424
2525type (
2626 logEntry struct {
27- Timestamp parser.MultiFormatTime `json:"T"`
28- Message string `json:"M"`
29- DutyID string `json:"duty_id"`
30- Slot uint64 `json:"slot"`
31- Round uint8 `json:"round"`
32- Signers []parser.SignerID `json:"signers"`
33- ConsensusTime string `json:"consensus_time"`
34- BlockRoot string `json:"block_root,omitempty"`
27+ Timestamp parser.MultiFormatTime `json:"T"`
28+ Message string `json:"M"`
29+ DutyID string `json:"duty_id"`
30+ Slot uint64 `json:"slot"`
31+ // Round is deprecated by https://github.com/ssvlabs/ssv/pull/2453#discussion_r2287196265 but kept for now
32+ // for backward-compatibility, use QBFTRound instead (we can remove Round later).
33+ Round uint8 `json:"round"`
34+ QBFTRound uint8 `json:"qbft_round"`
35+ Signers []parser.SignerID `json:"signers"`
36+ ConsensusTime string `json:"consensus_time"`
37+ BlockRoot string `json:"block_root,omitempty"`
3538 }
3639
3740 OperatorStats struct {
@@ -112,7 +115,7 @@ func (s *Service) Analyze() (Stats, error) {
112115
113116 //only consensus times with round 1 are not diluted
114117 if strings .Contains (entry .Message , attestationSubmissionLogRecord ) {
115- if entry .Round == 1 {
118+ if entry .Round == 1 || entry . QBFTRound == 1 {
116119 consensusDuration , err := stringToDuration (entry .ConsensusTime , time .Second )
117120 if err != nil {
118121 return stats , err
0 commit comments