public static Hash requestsHash(final List<Request> requests) {
    List<Bytes> requestHashes = new ArrayList<>();
    requests.forEach(
        request -> {
          // empty requests are excluded from the hash
          if (!request.getData().isEmpty()) {
            requestHashes.add(sha256(request.getEncodedRequest()));
          }
        });

    return Hash.wrap(sha256(Bytes.wrap(requestHashes)));
  }
Generates the requests hash for a list of requests

@param requests list of request (must be sorted by request type ascending)
@return the requests hash
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/BodyValidation.java