func (rs *RoundState) NewRoundEvent() types.EventDataNewRound {
	addr := rs.Validators.GetProposer().Address
	idx, _ := rs.Validators.GetByAddress(addr)

	return types.EventDataNewRound{
		Height: rs.Height,
		Round:  rs.Round,
		Step:   rs.Step.String(),
		Proposer: types.ValidatorInfo{
			Address: addr,
			Index:   idx,
		},
	}
}
// NewRoundEvent returns the RoundState with proposer information as an event.
NewRoundEvent returns the RoundState with proposer information as an event.
// NewRoundEvent returns the RoundState with proposer information as an event .
func (rs *RoundState) NewRoundEvent() types.EventDataNewRound {
	addr := rs.Validators.GetProposer().Address
	idx, _ := rs.Validators.GetByAddress(addr)
	return types.EventDataNewRound{
		Height: rs.Height,
		Round:  rs.Round,
		Step:   rs.Step.String(),
		Proposer: types.ValidatorInfo{
			Address: addr,
			Index:   idx,
		},
	}
}
func ( rs * RoundState ) NewRoundEvent ( ) types . EventDataNewRound { addr := rs . Validators . GetProposer ( ) . Address idx , _ := rs . Validators . GetByAddress ( addr ) return types . EventDataNewRound { Height : rs . Height , Round : rs . Round , Step : rs . Step . String ( ) , Proposer : types . ValidatorInfo { Address : addr , Index : idx , } , } }
NewRoundEvent returns the RoundState with proposer information as an event.
NewRoundEvent returns the RoundState with proposer information as an event .