abstract class BlockHeaderHelper extends AnyRef
Useful helper methods for getting block header related data for unit tests.
- Alphabetic
- By Inheritance
- BlockHeaderHelper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new BlockHeaderHelper()
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 badNBits: BlockHeader
- lazy val badNonce: BlockHeader
- lazy val badPrevHash: BlockHeader
Gives us a block header that has a bad prev hash (can't connect to anything
- final def buildNextHeader(prevHeader: BlockHeaderDb): BlockHeaderDb
Builds a block header on top the given prev header The only consensus requirement that this method adheres to with the returned org.bitcoins.chain.models.BlockHeaderDb is that
Builds a block header on top the given prev header The only consensus requirement that this method adheres to with the returned org.bitcoins.chain.models.BlockHeaderDb is that
- We reference the org.bitcoins.chain.models.BlockHeaderDb.blockHeader.hash correct 2. We increment the height of prevHeader by one
- Annotations
- @tailrec()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val header1: BlockHeader
The previous block to this was header2
The previous block to this was header2
- See also
- val header1Db: BlockHeaderDb
- val header2: BlockHeader
The next block is header1 after this block 000000000000000000250c4b6909c0befc321610d4cd0229ad08ad45a3335eb4
- val header2Db: BlockHeaderDb
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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 toString(): String
- Definition Classes
- AnyRef → Any
- lazy val twoValidHeaders: Vector[BlockHeader]
- 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()
- def withNBits(bh: BlockHeader, newNBits: UInt32): BlockHeader
Modifies the given block header with the new nBits
- def withNonce(bh: BlockHeader, newNonce: UInt32): BlockHeader
Modifies the given block header with the new nonce
- def withPrevhash(bh: BlockHeader, newPrevHash: DoubleSha256DigestBE): BlockHeader
Modifies the given block header with the newPrevHash