package
0.0.0-20190918032558-02f1fe41ded6
Repository: https://github.com/tangerine-network/tangerine-consensus.git
Documentation: pkg.go.dev

# Functions

NewLevelDBBackedDB initialize a leveldb-backed database.
NewMemBackedDB initialize a memory-backed database.

# Variables

ErrBlockDoesNotExist is the error when block does not eixst.
ErrBlockExists is the error when block eixsts.
ErrClosed is the error when using DB after it's closed.
ErrDKGPrivateKeyDoesNotExist raised when the DKG private key of the requested round does not exists.
ErrDKGPrivateKeyExists raised when attempting to save DKG private key that already saved.
ErrDKGProtocolDoesNotExist raised when the DKG protocol of the requested round does not exists.
ErrDKGProtocolExists raised when attempting to save DKG protocol that already saved.
ErrEmptyPath is the error when the required path is empty.
ErrInvalidCompactionChainTipHeight means the newly updated height of the tip of compaction chain is invalid, usually means it's smaller than current cached one.
ErrIterationFinished is the error to check if the iteration is finished.
ErrNotImplemented is the error that some interface is not implemented.

# Structs

DKGProtocolInfo DKG protocol info.
LevelDBBackedDB is a leveldb backed DB implementation.
MemBackedDB is a memory backed DB implementation.

# Interfaces

BlockIterator defines an iterator on blocks hold in a DB.
Database is the interface for a Database.
Reader defines the interface for reading blocks into DB.
Writer defines the interface for writing blocks into DB.

# Type aliases

NodeID the map with NodeID.
NodeIDToDKGID the map with NodeID to DKGID.
NodeIDToNodeIDs the map with NodeID to NodeIDs.
NodeIDToPubShares the map with NodeID to PublicKeyShares.