Constructor
new MoneroBlockHeader(state)
Construct the model.
Parameters:
Name | Type | Description |
---|---|---|
state |
MoneroBlockHeader | object | is existing state to initialize from (optional) |
Methods
copy()
getCumulativeDifficulty()
getDepth()
getDifficulty()
getHash()
getHeight() → {number}
Return the block's height which is the total number of blocks that have occurred before.
Returns:
the block's height
- Type
- number
getLongTermWeight()
getMajorVersion()
getMinerTxHash()
getMinorVersion()
getNonce()
getNumTxs()
getOrphanStatus()
getPowHash()
getPrevHash()
getReward()
getSize()
getTimestamp()
getWeight()
merge()
setCumulativeDifficulty()
setDepth()
setDifficulty()
setHash()
setHeight(height) → {MoneroBlockHeader}
Set the block's height which is the total number of blocks that have occurred before.
Parameters:
Name | Type | Description |
---|---|---|
height |
number | is the block's height to set |
Returns:
a reference to this header for chaining
- Type
- MoneroBlockHeader