Class

scorex.transaction.state.database.blockchain.StoredBlockTree

MapDBBlockTreePersistence

Related Doc: package StoredBlockTree

Permalink

class MapDBBlockTreePersistence extends BlockTreePersistence

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MapDBBlockTreePersistence
  2. BlockTreePersistence
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MapDBBlockTreePersistence(db: DB)

    Permalink

Type Members

  1. type Height = Int

    Permalink
    Definition Classes
    BlockTreePersistence
  2. type MapDBStoredBlock = (Array[Byte], Score, Height)

    Permalink
  3. type Score = BigInt

    Permalink
    Definition Classes
    BlockTreePersistence
  4. type StoredBlock = (Block, Score, Height)

    Permalink
    Definition Classes
    BlockTreePersistence

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. def bestBlock: Option[StoredBlock]

    Permalink
    Definition Classes
    BlockTreePersistence
  6. def changeBestChain(changes: Seq[(Block, Direction)]): Try[Unit]

    Permalink
  7. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def exists(blockId: BlockId): Boolean

    Permalink
  11. def exists(block: Block): Boolean

    Permalink
    Definition Classes
    BlockTreePersistence
  12. def filter(f: (Block) ⇒ Boolean): Seq[StoredBlock]

    Permalink
    Definition Classes
    BlockTreePersistence
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def getBestBlockId: BlockId

    Permalink
    Attributes
    protected
    Definition Classes
    MapDBBlockTreePersistenceBlockTreePersistence
  15. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def lookForward(parentSignature: BlockId, howMany: Height): Seq[BlockId]

    Permalink
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def readBlock(key: BlockId): Option[StoredBlock]

    Permalink
  23. def readBlock(block: Block): Option[StoredBlock]

    Permalink
    Definition Classes
    BlockTreePersistence
  24. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  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 writeBlock(block: Block): Try[Boolean]

    Permalink

    returns

    true when best block added, false when block score is less then current score

    Definition Classes
    MapDBBlockTreePersistenceBlockTreePersistence

Inherited from BlockTreePersistence

Inherited from AnyRef

Inherited from Any

Ungrouped