Merge branch 'main' into zkbesu

This commit is contained in:
Fabio Di Fabio
2024-06-06 18:16:51 +02:00
54 changed files with 1931 additions and 462 deletions

View File

@@ -18,6 +18,7 @@ package org.hyperledger.besu.util;
public class EndianUtils {
// next two methods adopted from:
// https://github.com/bcgit/bc-java/blob/master/core/src/main/java/org/bouncycastle/util/Pack.java
private EndianUtils() {}
/**
* Long to big endian.

View File

@@ -25,6 +25,8 @@ import java.util.function.Supplier;
/** The Future utils. */
public class FutureUtils {
private FutureUtils() {}
/**
* Returns a new CompletionStage that, when the provided stage completes exceptionally, is
* executed with the provided stage's exception as the argument to the supplied function.

View File

@@ -28,6 +28,8 @@ public class LogUtil {
static final String BESU_NAMESPACE = "org.hyperledger.besu";
static final int MAX_SUMMARY_DEPTH = 20;
private LogUtil() {}
/**
* Throttles logging to a given logger.
*

View File

@@ -43,6 +43,8 @@ public class PlatformDetector {
private static String _glibc;
private static String _jemalloc;
private PlatformDetector() {}
/**
* Gets OS type.
*