case class Block(parentId: ModifierId, timestamp: Time, generatorBox: ArbitBox, publicKey: PublicKeyPropositionCurve25519, signature: SignatureCurve25519, height: Long, difficulty: Long, transactions: Seq[TX], version: PNVMVersion) extends TransactionCarryingPersistentNodeViewModifier[TX] with Product with Serializable
A block is an atomic piece of data network participates are agreed on.
A block has: - transactional data: a sequence of transactions, where a transaction is an atomic state update. Some metadata is possible as well(transactions Merkle tree root, state Merkle tree root etc).
- consensus data to check whether block was generated by a right party in a right way. E.g. "baseTarget" & "generatorSignature" fields in the Nxt block structure, nonce & difficulty in the Bitcoin block structure.
- a signature(s) of a block generator(s)
- additional data: block structure version no, timestamp etc
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Block
- Product
- Equals
- TransactionCarryingPersistentNodeViewModifier
- PersistentNodeViewModifier
- NodeViewModifier
- BytesSerializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Block(parentId: ModifierId, timestamp: Time, generatorBox: ArbitBox, publicKey: PublicKeyPropositionCurve25519, signature: SignatureCurve25519, height: Long, difficulty: Long, transactions: Seq[TX], version: PNVMVersion)
Type Members
- type M = NodeViewModifier
- Definition Classes
- NodeViewModifier → BytesSerializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- lazy val bloomFilter: BloomFilter
- Definition Classes
- TransactionCarryingPersistentNodeViewModifier
- lazy val bytes: Array[Byte]
- Definition Classes
- BytesSerializable
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val difficulty: Long
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val generatorBox: ArbitBox
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val height: Long
- lazy val id: ModifierId
- Definition Classes
- Block → NodeViewModifier
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val merkleTree: MerkleTree[Digest32]
- Definition Classes
- TransactionCarryingPersistentNodeViewModifier
- lazy val messageToSign: Array[Byte]
- lazy val modifierTypeId: ModifierTypeId
- Definition Classes
- Block → NodeViewModifier
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val parentId: ModifierId
- Definition Classes
- Block → PersistentNodeViewModifier
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val publicKey: PublicKeyPropositionCurve25519
- lazy val serializer: BifrostSerializer[NodeViewModifier]
- Definition Classes
- NodeViewModifier → BytesSerializable
- val signature: SignatureCurve25519
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val timestamp: Time
- def toComponents: (BlockHeader, BlockBody)
- def toString(): String
- Definition Classes
- Block → AnyRef → Any
- val transactions: Seq[TX]
- Definition Classes
- Block → TransactionCarryingPersistentNodeViewModifier
- val version: PNVMVersion
- Definition Classes
- Block → PersistentNodeViewModifier
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()