Class ChainInfos

java.lang.Object
io.mokamint.node.ChainInfos

public abstract class ChainInfos extends Object
Providers of chain information objects.
  • Method Details

    • of

      public static ChainInfo of(long height, Optional<byte[]> genesisHash, Optional<byte[]> headHash, Optional<byte[]> headStateId)
      Yields a new chain information object.
      Parameters:
      height - the height of the chain
      genesisHash - the hash of the genesis block, if any
      headHash - the hash of the head block, if any
      headStateId - the state identifier at the end of the execution of the head block, if any
      Returns:
      the chain information object