iMerkleBlock

Properties

Link copied to clipboard
abstract var chainWork: BigInteger
Link copied to clipboard
abstract var diffBits: Long
Link copied to clipboard
abstract val hash: Hash256

Return this block's hash. Uses a cached value if one exists. If you change the block be sure to call calcHash() or invalidateHash() to update this value either greedily or lazily respectively

Link copied to clipboard
abstract var hashAncestor: Hash256
Link copied to clipboard
abstract var hashMerkleRoot: Hash256
Link copied to clipboard
abstract var hashPrevBlock: Hash256
Link copied to clipboard
abstract var height: Long
Link copied to clipboard
abstract var size: Long
Link copied to clipboard
abstract var time: Long
Link copied to clipboard
abstract var txCount: Long
Link copied to clipboard
abstract val txes: MutableList<out iTransaction>
Link copied to clipboard
abstract val txHashes: MutableSet<Hash256>
Link copied to clipboard
open val work: BigInteger

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun BCHserialize(format: SerializationType = SerializationType.UNKNOWN): BCHserialized
Link copied to clipboard
abstract fun calcHash(): Hash256

Force recalculation of hash. To access the hash just use #hash, to force recalc call "changed()"

Link copied to clipboard
abstract fun changed()

Communicate that this object has been changed, so recalculation of cached data is needed

Link copied to clipboard
abstract fun complete(): Boolean
Link copied to clipboard
abstract fun finalize()
Link copied to clipboard
open fun toByteArray(format: SerializationType = SerializationType.UNKNOWN): ByteArray
Link copied to clipboard
abstract fun txArrived(tx: iTransaction): Boolean
Link copied to clipboard
abstract fun validate(cs: ChainSelector): Boolean

run checks (such as verifying POW claim) & return true if the block header is consistent