// Convenience: Return new vote with different blockParts func withBlockParts(vote *types.Vote, blockParts types.PartSetHeader) *types.Vote { vote = vote.Copy() vote.BlockParts = blockParts return vote }