Package monero.daemon.model
Class MoneroBlockHeader
java.lang.Object
monero.daemon.model.MoneroBlockHeader
- Direct Known Subclasses:
MoneroBlock
Models a Monero block header which contains information about the block.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getDepth()
getHash()
Return the block's height which is the total number of blocks that have occurred before.getNonce()
getSize()
int
hashCode()
merge
(MoneroBlockHeader header) setCumulativeDifficulty
(BigInteger cumulativeDifficulty) setDifficulty
(BigInteger difficulty) Set the block's height which is the total number of blocks that have occurred before.setLongTermWeight
(Long longTermWeight) setMajorVersion
(Integer majorVersion) setMinerTxHash
(String minerTxHash) setMinorVersion
(Integer minorVersion) setOrphanStatus
(Boolean orphanStatus) setPowHash
(String powHash) setPrevHash
(String prevHash) setReward
(BigInteger reward) setTimestamp
(Long timestamp) toString()
toString
(int indent)
-
Constructor Details
-
MoneroBlockHeader
public MoneroBlockHeader() -
MoneroBlockHeader
-
-
Method Details
-
getHash
-
setHash
-
getHeight
Return the block's height which is the total number of blocks that have occurred before.- Returns:
- the block's height
-
setHeight
Set the block's height which is the total number of blocks that have occurred before.- Parameters:
height
- is the block's height to set- Returns:
- a reference to this header for chaining
-
getTimestamp
-
setTimestamp
-
getSize
-
setSize
-
getWeight
-
setWeight
-
getLongTermWeight
-
setLongTermWeight
-
getDepth
-
setDepth
-
getDifficulty
-
setDifficulty
-
getCumulativeDifficulty
-
setCumulativeDifficulty
-
getMajorVersion
-
setMajorVersion
-
getMinorVersion
-
setMinorVersion
-
getNonce
-
setNonce
-
getMinerTxHash
-
setMinerTxHash
-
getNumTxs
-
setNumTxs
-
getOrphanStatus
-
setOrphanStatus
-
getPrevHash
-
setPrevHash
-
getReward
-
setReward
-
getPowHash
-
setPowHash
-
merge
-
toString
-
toString
-
hashCode
public int hashCode() -
equals
-