Package monero.daemon.model
Class MoneroBlock
java.lang.Object
monero.daemon.model.MoneroBlockHeader
monero.daemon.model.MoneroBlock
Models a Monero block in the blockchain.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
getHex()
getTxs()
int
hashCode()
merge
(MoneroBlock block) 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) setMinerTx
(MoneroTx minerTx) setMinorVersion
(Integer minorVersion) setOrphanStatus
(Boolean orphanStatus) setPowHash
(String powHash) setPrevHash
(String prevHash) setReward
(BigInteger reward) setTimestamp
(Long timestamp) setTxHashes
(List<String> txHashes) toString
(int indent) Methods inherited from class monero.daemon.model.MoneroBlockHeader
getCumulativeDifficulty, getDepth, getDifficulty, getHash, getHeight, getLongTermWeight, getMajorVersion, getMinerTxHash, getMinorVersion, getNonce, getNumTxs, getOrphanStatus, getPowHash, getPrevHash, getReward, getSize, getTimestamp, getWeight, merge, setMinerTxHash, toString
-
Constructor Details
-
MoneroBlock
public MoneroBlock() -
MoneroBlock
-
MoneroBlock
-
-
Method Details
-
getHex
-
setHex
-
getMinerTx
-
setMinerTx
-
getTxs
-
setTxs
-
setTxs
-
getTxHashes
-
setTxHashes
-
copy
-
merge
-
toString
- Overrides:
toString
in classMoneroBlockHeader
-
hashCode
public int hashCode()- Overrides:
hashCode
in classMoneroBlockHeader
-
equals
- Overrides:
equals
in classMoneroBlockHeader
-
setHash
- Overrides:
setHash
in classMoneroBlockHeader
-
setHeight
Description copied from class:MoneroBlockHeader
Set the block's height which is the total number of blocks that have occurred before.- Overrides:
setHeight
in classMoneroBlockHeader
- Parameters:
height
- is the block's height to set- Returns:
- a reference to this header for chaining
-
setTimestamp
- Overrides:
setTimestamp
in classMoneroBlockHeader
-
setSize
- Overrides:
setSize
in classMoneroBlockHeader
-
setWeight
- Overrides:
setWeight
in classMoneroBlockHeader
-
setLongTermWeight
- Overrides:
setLongTermWeight
in classMoneroBlockHeader
-
setDepth
- Overrides:
setDepth
in classMoneroBlockHeader
-
setDifficulty
- Overrides:
setDifficulty
in classMoneroBlockHeader
-
setCumulativeDifficulty
- Overrides:
setCumulativeDifficulty
in classMoneroBlockHeader
-
setMajorVersion
- Overrides:
setMajorVersion
in classMoneroBlockHeader
-
setMinorVersion
- Overrides:
setMinorVersion
in classMoneroBlockHeader
-
setNonce
- Overrides:
setNonce
in classMoneroBlockHeader
-
setNumTxs
- Overrides:
setNumTxs
in classMoneroBlockHeader
-
setOrphanStatus
- Overrides:
setOrphanStatus
in classMoneroBlockHeader
-
setPrevHash
- Overrides:
setPrevHash
in classMoneroBlockHeader
-
setReward
- Overrides:
setReward
in classMoneroBlockHeader
-
setPowHash
- Overrides:
setPowHash
in classMoneroBlockHeader
-