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

Inherited from Product

Inherited from Equals

Inherited from NodeViewModifier

Inherited from BytesSerializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped