Packages

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

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Block
  2. Product
  3. Equals
  4. TransactionCarryingPersistentNodeViewModifier
  5. PersistentNodeViewModifier
  6. NodeViewModifier
  7. BytesSerializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Block(parentId: ModifierId, timestamp: Time, generatorBox: ArbitBox, publicKey: PublicKeyPropositionCurve25519, signature: SignatureCurve25519, height: Long, difficulty: Long, transactions: Seq[TX], version: PNVMVersion)

Type Members

  1. type M = NodeViewModifier
    Definition Classes
    NodeViewModifier → BytesSerializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. lazy val bloomFilter: BloomFilter
  6. lazy val bytes: Array[Byte]
    Definition Classes
    BytesSerializable
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. val difficulty: Long
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. val generatorBox: ArbitBox
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. val height: Long
  13. lazy val id: ModifierId
    Definition Classes
    Block → NodeViewModifier
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. lazy val merkleTree: MerkleTree[Digest32]
  16. lazy val messageToSign: Array[Byte]
  17. lazy val modifierTypeId: ModifierTypeId
    Definition Classes
    Block → NodeViewModifier
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. val parentId: ModifierId
    Definition Classes
    Block → PersistentNodeViewModifier
  22. def productElementNames: Iterator[String]
    Definition Classes
    Product
  23. val publicKey: PublicKeyPropositionCurve25519
  24. lazy val serializer: BifrostSerializer[NodeViewModifier]
    Definition Classes
    NodeViewModifier → BytesSerializable
  25. val signature: SignatureCurve25519
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. val timestamp: Time
  28. def toComponents: (BlockHeader, BlockBody)
  29. def toString(): String
    Definition Classes
    Block → AnyRef → Any
  30. val transactions: Seq[TX]
  31. val version: PNVMVersion
    Definition Classes
    Block → PersistentNodeViewModifier
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Product

Inherited from Equals

Inherited from NodeViewModifier

Inherited from BytesSerializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped