// Convenience: Return new vote with different blockHash func withBlockHash(vote *types.Vote, blockHash []byte) *types.Vote { vote = vote.Copy() vote.BlockHash = blockHash return vote }