Class NodeInfos

java.lang.Object
io.mokamint.node.NodeInfos

public abstract class NodeInfos extends Object
Providers of non-consensus node information.
  • Method Details

    • of

      public static NodeInfo of(Version version, UUID uuid, LocalDateTime localDateTimeUTC, int maxChainPortionLength, int maxMempoolPortionLength)
      Yields a node information object.
      Parameters:
      version - the version of the node
      uuid - the UUID of the node
      localDateTimeUTC - the local date and time UTC of the node
      maxChainPortionLength - the maximal number of block hashes that can be fetched with a single PublicNode.getChainPortion(long, int) call
      maxMempoolPortionLength - the maximal number of mempool elements that can be fetched with a single PublicNode.getMempoolPortion(int, int) call
      Returns:
      the node information object