Class Difficulty

java.lang.Object
com.norswap.nanoeth.blocks.Difficulty

public final class Difficulty
extends Object
  • Method Details

    • computeDifficulty

      public static Natural computeDifficulty​(Natural timestamp, BlockHeader parent)
      Compute the canonical difficulty of a block arriving at the given timestamp, with the given parent block header. If the parent is null, returns the genesis difficulty.