Package com.norswap.nanoeth.blocks
Class Difficulty
java.lang.Object
com.norswap.nanoeth.blocks.Difficulty
public final class Difficulty extends Object
-
Method Summary
Modifier and Type Method Description 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.
-
Method Details
-
computeDifficulty
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.
-