@Override
  public JsonRpcResponse response(final JsonRpcRequestContext requestContext) {
    checkState(
        validatorProvider.getVoteProviderAtHead().isPresent(), "Clique requires a vote provider");
    final Address address;
    try {
      address = requestContext.getRequiredParameter(0, Address.class);
    } catch (JsonRpcParameterException e) {
      throw new InvalidJsonRpcParameters(
          "Invalid address parameter (index 0)", RpcErrorType.INVALID_ADDRESS_PARAMS, e);
    }
    validatorProvider.getVoteProviderAtHead().get().discardVote(address);
    return new JsonRpcSuccessResponse(requestContext.getRequest().getId(), true);
  }
Instantiates a new Discard.

@param validatorProvider the validator provider
consensus/clique/src/main/java/org/hyperledger/besu/consensus/clique/jsonrpc/methods/Discard.java