Class/Object

org.bitcoins.testkit.chain

BlockHeaderHelper

Related Docs: object BlockHeaderHelper | package chain

Permalink

abstract class BlockHeaderHelper extends AnyRef

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

Linear Supertypes
AnyRef, Any
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. All

Instance Constructors

  1. new BlockHeaderHelper()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. lazy val badNBits: BlockHeader

    Permalink
  6. lazy val badNonce: BlockHeader

    Permalink
  7. lazy val badPrevHash: BlockHeader

    Permalink

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

  8. final def buildNextHeader(prevHeader: BlockHeaderDb): BlockHeaderDb

    Permalink

    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.

    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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. val header1: BlockHeader

    Permalink

    The previous block to this was header2

    The previous block to this was header2

    See also

    height #566,093

  16. val header1Db: BlockHeaderDb

    Permalink
  17. val header2: BlockHeader

    Permalink

    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

    Permalink
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. lazy val twoValidHeaders: Vector[BlockHeader]

    Permalink
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def withNBits(bh: BlockHeader, newNBits: UInt32): BlockHeader

    Permalink

    Modifies the given block header with the new nBits

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

    Permalink

    Modifies the given block header with the new nonce

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

    Permalink

    Modifies the given block header with the newPrevHash

Inherited from AnyRef

Inherited from Any

Ungrouped