@Override
  protected Object pendingResult(final JsonRpcRequestContext request) {
    final BlockHeader blockHeader = getBlockchainQueries().headBlockHeader();
    LOG.trace("Received RPC rpcName={} block={}", getName(), blockHeader.getNumber());
    return validatorProvider.getValidatorsAfterBlock(blockHeader).stream()
        .map(Address::toString)
        .collect(Collectors.toList());
  }
Instantiates a new Qbft get validators by block number.

@param blockchainQueries the blockchain queries
@param validatorProvider the validator provider
consensus/qbft/src/main/java/org/hyperledger/besu/consensus/qbft/jsonrpc/methods/QbftGetValidatorsByBlockNumber.java