Packages

abstract class AbstractHistory[TX <: Transaction, H <: SidechainBlockHeaderBase, PM <: SidechainBlockBase[TX, H], FPI <: AbstractFeePaymentsInfo, HSTOR <: AbstractHistoryStorage[PM, FPI, HSTOR], HT <: AbstractHistory[TX, H, PM, FPI, HSTOR, HT]] extends History[PM, SidechainSyncInfo, HT] with NetworkParamsUtils with ConsensusDataProvider with HistoryBlockHashProvider with NodeHistoryBase[TX, H, PM, FPI] with SparkzLogging

Self Type
HT
Linear Supertypes
SparkzLogging, StrictLogging, NodeHistoryBase[TX, H, PM, FPI], HistoryBlockHashProvider, ConsensusDataProvider, NetworkParamsUtils, History[PM, SidechainSyncInfo, HT], HistoryReader[PM, SidechainSyncInfo], ContainsModifiers[PM], NodeViewComponent, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractHistory
  2. SparkzLogging
  3. StrictLogging
  4. NodeHistoryBase
  5. HistoryBlockHashProvider
  6. ConsensusDataProvider
  7. NetworkParamsUtils
  8. History
  9. HistoryReader
  10. ContainsModifiers
  11. NodeViewComponent
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractHistory(storage: HSTOR, consensusDataStorage: ConsensusDataStorage, params: NetworkParams, semanticBlockValidators: Seq[SemanticBlockValidator[PM]], historyBlockValidators: Seq[HistoryBlockValidator[TX, H, PM, FPI, HSTOR, HT]])
    Attributes
    protected

Type Members

  1. abstract type NVCT >: AbstractHistory.this.type <: NodeViewComponent
    Definition Classes
    NodeViewComponent

Abstract Value Members

  1. abstract def makeNewHistory(storage: HSTOR, consensusDataStorage: ConsensusDataStorage): HT

Concrete 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. def append(block: PM): Try[(HT, ProgressInfo[PM])]
    Definition Classes
    AbstractHistory → History
  5. def applicableTry(block: PM): Try[Unit]
    Definition Classes
    AbstractHistory → HistoryReader
  6. def applyFullConsensusInfo(lastBlockInEpoch: ModifierId, fullConsensusEpochInfo: FullConsensusEpochInfo): HT
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def bestBlock: PM
  9. def bestBlockId: ModifierId
  10. def bestBlockInfo: SidechainBlockInfo
  11. def bestForkChanges(block: PM): Try[ProgressInfo[PM]]
  12. def blockIdByHeight(height: Int): Option[String]
  13. def blockInfoById(blockId: ModifierId): SidechainBlockInfo
  14. def blockToBlockInfo(block: PM): Option[SidechainBlockInfo]
  15. def calculateBlockInfo(block: PM, parentBlockInfo: SidechainBlockInfo): SidechainBlockInfo
    Attributes
    protected
  16. def calculateChainScore(block: PM, parentScore: Long): Long
  17. def calculateNonceForEpoch(epochId: ConsensusEpochId): NonceConsensusEpochInfo
    Definition Classes
    ConsensusDataProvider
  18. def chainBack(blockId: ModifierId, until: (ModifierId) ⇒ Boolean, limit: Int): Option[Seq[ModifierId]]
  19. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  20. def commonBlockSuffixes(forkBlock: PM): (Seq[ModifierId], Seq[ModifierId])
    Attributes
    protected
  21. def compare(other: SidechainSyncInfo): HistoryComparisonResult

    From Sparkz History: Whether another's node syncinfo shows that another node is ahead or behind ours

    From Sparkz History: 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
    AbstractHistory → HistoryReader
  22. val consensusDataStorage: ConsensusDataStorage
  23. def contains(id: ModifierId): Boolean
    Definition Classes
    AbstractHistory → ContainsModifiers
  24. def contains(persistentModifier: PM): Boolean
    Definition Classes
    ContainsModifiers
  25. def continuationIds(info: SidechainSyncInfo, size: Int): ModifierIds
    Definition Classes
    AbstractHistory → HistoryReader
  26. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  28. def feePaymentsInfo(blockId: ModifierId): Option[FPI]
  29. def findTransactionInsideBlock(transactionId: String, block: PM): Optional[TX]
  30. def getBestBlock(): PM
    Definition Classes
    AbstractHistoryNodeHistoryBase
  31. def getBestMainchainBlockReferenceDataInfo: Option[MainchainBlockReferenceDataInfo]
  32. def getBestMainchainBlockReferenceInfo(): Optional[MainchainBlockReferenceInfo]
    Definition Classes
    AbstractHistoryNodeHistoryBase
  33. def getBestMainchainHeaderInfo: Option[MainchainHeaderInfo]
  34. def getBlockById(blockId: String): Optional[PM]
    Definition Classes
    AbstractHistoryNodeHistoryBase
  35. def getBlockHeightById(id: String): Optional[Integer]
    Definition Classes
    AbstractHistoryNodeHistoryBase
  36. def getBlockIdByHeight(height: Int): Optional[String]
    Definition Classes
    AbstractHistoryNodeHistoryBase
  37. def getBlockInfoById(blockId: String): Optional[SidechainBlockInfo]
    Definition Classes
    AbstractHistoryNodeHistoryBase
  38. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  39. def getCurrentHeight(): Int
    Definition Classes
    AbstractHistoryNodeHistoryBase
  40. def getFeePaymentsInfo(blockId: String): Optional[FPI]
    Definition Classes
    AbstractHistoryNodeHistoryBase
  41. def getFullConsensusEpochInfoForBlock(blockTimestamp: Timestamp, parentBlockId: ModifierId): FullConsensusEpochInfo
    Definition Classes
    ConsensusDataProvider
  42. def getLastBlockIdOfPrePreviousEpochs(blockTimestamp: Timestamp, parentBlockId: ModifierId): ModifierId
    Definition Classes
    ConsensusDataProvider
  43. def getLastBlockIds(count: Int): List[String]
    Definition Classes
    AbstractHistoryNodeHistoryBase
  44. def getLastBlockInPreviousConsensusEpoch(blockTimestamp: Timestamp, parentId: ModifierId): ModifierId
    Definition Classes
    ConsensusDataProvider
  45. def getMainchainBlockReferenceByHash(mainchainHeaderHash: Array[Byte]): Optional[MainchainBlockReference]
    Definition Classes
    AbstractHistoryNodeHistoryBase
  46. def getMainchainBlockReferenceDataInfoByHash(mainchainHeaderHash: Array[Byte]): Option[MainchainBlockReferenceDataInfo]
  47. def getMainchainBlockReferenceDataInfoByHeight(height: Int): Option[MainchainBlockReferenceDataInfo]
  48. def getMainchainBlockReferenceInfoByHash(mainchainBlockReferenceHash: Array[Byte]): Optional[MainchainBlockReferenceInfo]
    Definition Classes
    AbstractHistoryNodeHistoryBase
  49. def getMainchainBlockReferenceInfoByMainchainBlockHeight(height: Int): Optional[MainchainBlockReferenceInfo]
    Definition Classes
    AbstractHistoryNodeHistoryBase
  50. def getMainchainCreationBlockHeight(): Int
    Definition Classes
    AbstractHistoryNodeHistoryBase
  51. def getMainchainHashes(last: Array[Byte], best: Array[Byte]): Seq[MainchainHeaderHash]
  52. def getMainchainHashesLocator: Seq[MainchainHeaderHash]
  53. def getMainchainHeaderByHash(mainchainHeaderHash: Array[Byte]): Optional[MainchainHeader]
    Definition Classes
    AbstractHistoryNodeHistoryBase
  54. def getMainchainHeaderInfoByHash(mainchainHeaderHash: Array[Byte]): Optional[MainchainHeaderInfo]
    Definition Classes
    AbstractHistoryNodeHistoryBase
  55. def getMainchainHeaderInfoByHeight(height: Int): Option[MainchainHeaderInfo]
  56. def getOrCalculateNonceConsensusEpochInfo(blockTimestamp: Timestamp, parentBlockId: ModifierId): NonceConsensusEpochInfo
    Definition Classes
    ConsensusDataProvider
  57. def getReader: HistoryReader[PM, SidechainSyncInfo]
    Definition Classes
    History
  58. def getStakeConsensusEpochInfo(blockTimestamp: Timestamp, parentBlockId: ModifierId): Option[StakeConsensusEpochInfo]
    Definition Classes
    ConsensusDataProvider
  59. def getStorageBlockById(blockId: ModifierId): Option[PM]
  60. def getStorageBlockInfoById(blockId: ModifierId): Option[SidechainBlockInfo]
  61. def getVrfOutput(blockHeader: SidechainBlockHeaderBase, nonceConsensusEpochInfo: NonceConsensusEpochInfo): Option[VrfOutput]
    Definition Classes
    ConsensusDataProvider
  62. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  63. def height: Int
  64. val historyBlockValidators: Seq[HistoryBlockValidator[TX, H, PM, FPI, HSTOR, HT]]
  65. def isBestBlock(block: PM, parentBlockInfo: SidechainBlockInfo): Boolean
  66. def isEmpty: Boolean
    Definition Classes
    AbstractHistory → HistoryReader
  67. def isGenesisBlock(blockId: ModifierId): Boolean
    Definition Classes
    NetworkParamsUtils
  68. def isInActiveChain(blockId: String): Boolean
    Definition Classes
    AbstractHistoryNodeHistoryBase
  69. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  70. def isSemanticallyValid(blockId: ModifierId): ModifierSemanticValidity
    Definition Classes
    AbstractHistory → HistoryReader
  71. def knownBlocksHeightToSync(): Seq[Int]
    Attributes
    protected
  72. def log: Logger
    Attributes
    protected
    Definition Classes
    SparkzLogging
    Annotations
    @inline()
  73. val logger: Logger
    Attributes
    protected
    Definition Classes
    StrictLogging
  74. def mainchainHeaderInfoByHash(mainchainHeaderHash: Array[Byte]): Option[MainchainHeaderInfo]
  75. def missedMainchainReferenceDataHeaderHashes: Seq[MainchainHeaderHash]
  76. def modifierById(blockId: ModifierId): Option[PM]
    Definition Classes
    AbstractHistory → ContainsModifiers
  77. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  78. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  79. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  80. def openSurfaceIds(): Seq[ModifierId]
    Definition Classes
    AbstractHistory → HistoryReader
  81. val params: NetworkParams
  82. def reportModifierIsInvalid(modifier: PM, progressInfo: ProgressInfo[PM]): Try[(HT, ProgressInfo[PM])]
    Definition Classes
    AbstractHistory → History
  83. def reportModifierIsValid(block: PM): Try[HT]
    Definition Classes
    AbstractHistory → History
  84. def searchTransactionInsideSidechainBlock(transactionId: String, blockId: String): Optional[TX]
    Definition Classes
    AbstractHistoryNodeHistoryBase
  85. val semanticBlockValidators: Seq[SemanticBlockValidator[PM]]
  86. val storage: HSTOR
  87. def syncInfo: SidechainSyncInfo
    Definition Classes
    AbstractHistory → HistoryReader
  88. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  89. def toString(): String
    Definition Classes
    AnyRef → Any
  90. def updateFeePaymentsInfo(blockId: ModifierId, feePaymentsInfo: FPI): HT
  91. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  92. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  93. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from SparkzLogging

Inherited from StrictLogging

Inherited from NodeHistoryBase[TX, H, PM, FPI]

Inherited from HistoryBlockHashProvider

Inherited from ConsensusDataProvider

Inherited from NetworkParamsUtils

Inherited from History[PM, SidechainSyncInfo, HT]

Inherited from HistoryReader[PM, SidechainSyncInfo]

Inherited from ContainsModifiers[PM]

Inherited from NodeViewComponent

Inherited from AnyRef

Inherited from Any

Ungrouped