Trait/Object

scorex.core.consensus

BlockChain

Related Docs: object BlockChain | package consensus

Permalink

trait BlockChain[P <: Proposition, TX <: Transaction[P], B <: Block[P, TX], SI <: SyncInfo, BT <: BlockChain[P, TX, B, SI, BT]] extends History[P, TX, B, SI, BT] with ScorexLogging

Linear Supertypes
ScorexLogging, History[P, TX, B, SI, BT], NodeViewComponent, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BlockChain
  2. ScorexLogging
  3. History
  4. NodeViewComponent
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type NVCT >: BlockChain.this.type <: NodeViewComponent

    Permalink
    Definition Classes
    NodeViewComponent

Abstract Value Members

  1. abstract def append(modifier: B): Try[(BT, Option[RollbackTo[B]])]

    Permalink
    Definition Classes
    History
  2. abstract def blockAt(height: Int): Option[B]

    Permalink
  3. abstract def chainScore(): Score

    Permalink

    Quality score of a best chain, e.g.

    Quality score of a best chain, e.g. cumulative difficulty in case of Bitcoin / Nxt

  4. abstract def children(blockId: ModifierId): Seq[B]

    Permalink
  5. abstract def compare(other: SI): History.HistoryComparisonResult.Value

    Permalink

    Whether another's node syncinfo shows that another node is ahead or behind ours

    Whether another's node syncinfo shows that another node is ahead or behind ours

    other

    other's node sync info

    returns

    Equal if nodes have the same history, Younger if another node is behind, Older if a new node is ahead

    Definition Classes
    History
  6. abstract def height(): Int

    Permalink

    Height of the a chain, or a longest chain in an explicit block-tree

  7. abstract def heightOf(blockId: ModifierId): Option[Int]

    Permalink
  8. abstract def modifierById(modifierId: ModifierId): Option[B]

    Permalink
    Definition Classes
    History
  9. abstract def score(block: B): Score

    Permalink

    Score of concrete block

  10. abstract def syncInfo(answer: Boolean): SI

    Permalink
    Definition Classes
    History

Concrete 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. def applicable(modifier: B): Boolean

    Permalink

    Whether a modifier could be applied to the history

    Whether a modifier could be applied to the history

    modifier

    - modifier to apply

    Definition Classes
    History
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def averageDelay(blockId: ModifierId, blockNum: Int): Try[Long]

    Permalink

    Average delay in milliseconds between last blockNum blocks starting from block

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def contains(id: ModifierId): Boolean

    Permalink

    Whether the history contains a modifier with the given id

    Whether the history contains a modifier with the given id

    id

    - modifier's id

    Definition Classes
    History
  9. def contains(persistentModifier: B): Boolean

    Permalink

    Whether the history contains the given modifier

    Whether the history contains the given modifier

    persistentModifier

    - modifier

    Definition Classes
    History
  10. def continuation(openSurface: Seq[(ModifierTypeId, ModifierId)], size: Int): Option[Seq[B]]

    Permalink
    Definition Classes
    BlockChainHistory
  11. def continuationIds(openSurface: Seq[(ModifierTypeId, ModifierId)], size: Int): Option[Seq[(ModifierTypeId, ModifierId)]]

    Permalink
    Definition Classes
    BlockChainHistory
  12. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. lazy val genesisBlock: B

    Permalink
  16. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def heightOf(block: B): Option[Int]

    Permalink

    Height of a block if it's in the blocktree

  19. def isEmpty: Boolean

    Permalink

    Is there's no history, even genesis block

    Is there's no history, even genesis block

    Definition Classes
    BlockChainHistory
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def lastBlock: B

    Permalink

    Block with maximum blockchain score

  22. def lastBlockIds(howMany: Int): Seq[ModifierId]

    Permalink
  23. def lastBlocks(howMany: Int): Seq[B]

    Permalink
  24. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    ScorexLogging
  25. def lookForward(parentSignature: ModifierId, howMany: Int): Seq[ModifierId]

    Permalink

    Return howMany blocks starting from parentSignature

  26. def modifierById(modifierId: String): Option[B]

    Permalink
    Definition Classes
    History
  27. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def openSurfaceIds(): Seq[ModifierId]

    Permalink
    Definition Classes
    BlockChainHistory
  31. def parent(block: B, back: Int = 1): Option[B]

    Permalink
  32. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ScorexLogging

Inherited from History[P, TX, B, SI, BT]

Inherited from NodeViewComponent

Inherited from AnyRef

Inherited from Any

Ungrouped