public static Encoder getEncoder(final Capability capability) {
    if (capability.getVersion() >= EthProtocolVersion.V68) {
      return TransactionAnnouncementEncoder::encodeForEth68;
    } else {
      return TransactionAnnouncementEncoder::encodeForEth66;
    }
  }
Returns the correct encoder given an Eth Capability

<p>See <a href="https://eips.ethereum.org/EIPS/eip-5793">EIP-5793</a>

@param capability the version of the eth protocol
@return the correct encoder
ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/encoding/TransactionAnnouncementEncoder.java