protected Vote decodeVote(final RLPInput rlpInput) {
    rlpInput.enterList();
    final Address recipient = Address.readFrom(rlpInput);

    final VoteType vote;
    if (rlpInput.nextSize() == 0) {
      rlpInput.skipNext();
      vote = VoteType.DROP;
    } else {
      vote = voteToValue.inverse().get(rlpInput.readByte());
    }

    if (vote == null) {
      throw new RLPException("Vote field was of an incorrect binary value.");
    }
    rlpInput.leaveList();

    return new Vote(recipient, vote);
  }
Decode vote.

@param rlpInput the rlp input
@return the vote
consensus/qbft/src/main/java/org/hyperledger/besu/consensus/qbft/QbftExtraDataCodec.java