Class ChainPortions

java.lang.Object
io.mokamint.node.ChainPortions

public abstract class ChainPortions extends Object
Providers of objects containing the hashes of a sorted, sequential portion of the current best chain of a Mokamint node.
  • Method Details

    • of

      public static ChainPortion of(Stream<byte[]> hashes)
      Yields the container of the hashes of a sequential portion of the current best chain of a Mokamint node.
      Parameters:
      hashes - the hashes, in increasing order of height
      Returns:
      the object containing the sequential hashes