protected void encodeVote(final RLPOutput rlpOutput, final Vote vote) {
    final VoteType voteType = vote.isAuth() ? VoteType.ADD : VoteType.DROP;
    rlpOutput.startList();
    rlpOutput.writeBytes(vote.getRecipient());
    if (voteType == VoteType.ADD) {
      rlpOutput.writeByte(ADD_BYTE_VALUE);
    } else {
      rlpOutput.writeNull();
    }
    rlpOutput.endList();
  }
Encode vote.

@param rlpOutput the rlp output
@param vote the vote
consensus/qbft/src/main/java/org/hyperledger/besu/consensus/qbft/QbftExtraDataCodec.java