BlockHeight
org.sigilaris.node.jvm.runtime.block.Model$package.BlockHeight
object BlockHeight
Companion for BlockHeight.
Attributes
- Source
- Model.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BlockHeight.type
Members list
Value members
Concrete methods
Wraps a BigNat as a BlockHeight.
Wraps a BigNat as a BlockHeight.
Value parameters
- value
-
the non-negative natural number
Attributes
- Returns
-
the corresponding block height
- Source
- Model.scala
Converts a Long to a BlockHeight, failing if the value is negative.
Converts a Long to a BlockHeight, failing if the value is negative.
Value parameters
- value
-
non-negative long value
Attributes
- Returns
-
Right(height)on success, orLeft(error)if negative - Source
- Model.scala
Converts a Long to a BlockHeight, throwing on negative input.
Converts a Long to a BlockHeight, throwing on negative input.
Value parameters
- value
-
non-negative long value
Attributes
- Returns
-
the corresponding block height
- Throws
-
IllegalArgumentException
if the value is negative
- Source
- Model.scala
Concrete fields
Height of the genesis block (zero).
Givens
Extensions
Extensions
extension (height: BlockHeight)
Renders the block height as a decimal string.
Unwraps the underlying BigNat.
In this article