Packages

abstract class BlockHeaderHelper extends AnyRef

Useful helper methods for getting block header related data for unit tests.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BlockHeaderHelper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new BlockHeaderHelper()

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 badNBits: BlockHeader
  6. lazy val badNonce: BlockHeader
  7. lazy val badPrevHash: BlockHeader

    Gives us a block header that has a bad prev hash (can't connect to anything

  8. 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

    1. We reference the org.bitcoins.chain.models.BlockHeaderDb.blockHeader.hash correct 2. We increment the height of prevHeader by one
    Annotations
    @tailrec()
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. val header1: BlockHeader

    The previous block to this was header2

    The previous block to this was header2

    See also

    height #566,093

  16. val header1Db: BlockHeaderDb
  17. val header2: BlockHeader

    The next block is header1 after this block 000000000000000000250c4b6909c0befc321610d4cd0229ad08ad45a3335eb4

    The next block is header1 after this block 000000000000000000250c4b6909c0befc321610d4cd0229ad08ad45a3335eb4

    See also

    #566,092

  18. val header2Db: BlockHeaderDb
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. lazy val twoValidHeaders: Vector[BlockHeader]
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. def withNBits(bh: BlockHeader, newNBits: UInt32): BlockHeader

    Modifies the given block header with the new nBits

  30. def withNonce(bh: BlockHeader, newNonce: UInt32): BlockHeader

    Modifies the given block header with the new nonce

  31. def withPrevhash(bh: BlockHeader, newPrevHash: DoubleSha256DigestBE): BlockHeader

    Modifies the given block header with the newPrevHash

Inherited from AnyRef

Inherited from Any

Ungrouped