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