object Block extends Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Block
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
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
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def createAndSign(parentId: ModifierId, timestamp: Time, txs: Seq[TX], generatorBox: ArbitBox, publicKey: PublicKeyPropositionCurve25519, height: Long, difficulty: Long, version: PNVMVersion)(signFunction: (Array[Byte]) => Try[SignatureCurve25519]): Try[Block]
Creates a new block
Creates a new block
- parentId
the id of the previous block
- timestamp
time this block was forged
- txs
a seqence of state modifiers
- generatorBox
the Arbit box that resulted in the successful hit
- height
the new height of the chain with this block
- difficulty
the new difficulty of the chain with this block
- version
a byte used to signal the serializer version to use for this block
- returns
a block to be sent to the network
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromComponents(header: BlockHeader, body: BlockBody): Block
Creates a full block from the individual components
Creates a full block from the individual components
- header
the header information needed by the consensus layer
- body
the block body containing transactions
- returns
a full block
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def jsonDecoder(implicit networkPrefix: NetworkPrefix): Decoder[Block]
- implicit val jsonEncoder: Encoder[Block]
- val modifierTypeId: @@[Byte, NodeViewModifier.ModifierTypeId.Tag]
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toComponents(block: Block): (BlockHeader, BlockBody)
Deconstruct a block to its compoennts
Deconstruct a block to its compoennts
- block
the block to decompose
- returns
a block header and block body
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()