示例#1
0
// Convenience: Return new vote with different round
func withRound(vote *types.Vote, round int) *types.Vote {
	vote = vote.Copy()
	vote.Round = round
	return vote
}