|
@ -8,7 +8,7 @@ import ( |
|
|
|
|
|
|
|
|
"github.com/pkg/errors" |
|
|
"github.com/pkg/errors" |
|
|
|
|
|
|
|
|
"github.com/tendermint/go-amino" |
|
|
|
|
|
|
|
|
amino "github.com/tendermint/go-amino" |
|
|
cstypes "github.com/tendermint/tendermint/consensus/types" |
|
|
cstypes "github.com/tendermint/tendermint/consensus/types" |
|
|
cmn "github.com/tendermint/tendermint/libs/common" |
|
|
cmn "github.com/tendermint/tendermint/libs/common" |
|
|
tmevents "github.com/tendermint/tendermint/libs/events" |
|
|
tmevents "github.com/tendermint/tendermint/libs/events" |
|
@ -438,9 +438,9 @@ func (conR *ConsensusReactor) broadcastHasVoteMessage(vote *types.Vote) { |
|
|
|
|
|
|
|
|
func makeRoundStepMessage(rs *cstypes.RoundState) (nrsMsg *NewRoundStepMessage) { |
|
|
func makeRoundStepMessage(rs *cstypes.RoundState) (nrsMsg *NewRoundStepMessage) { |
|
|
nrsMsg = &NewRoundStepMessage{ |
|
|
nrsMsg = &NewRoundStepMessage{ |
|
|
Height: rs.Height, |
|
|
|
|
|
Round: rs.Round, |
|
|
|
|
|
Step: rs.Step, |
|
|
|
|
|
|
|
|
Height: rs.Height, |
|
|
|
|
|
Round: rs.Round, |
|
|
|
|
|
Step: rs.Step, |
|
|
SecondsSinceStartTime: int(time.Since(rs.StartTime).Seconds()), |
|
|
SecondsSinceStartTime: int(time.Since(rs.StartTime).Seconds()), |
|
|
LastCommitRound: rs.LastCommit.Round(), |
|
|
LastCommitRound: rs.LastCommit.Round(), |
|
|
} |
|
|
} |
|
|