Documentation
¶
Index ¶
- type DB
- func (d *DB) Close() error
- func (d *DB) GetAllBlocks() (coreDb.BlockIterator, error)
- func (d *DB) GetBlock(hash coreCommon.Hash) (coreTypes.Block, error)
- func (d *DB) GetCompactionChainTipInfo() (hash coreCommon.Hash, height uint64)
- func (d *DB) GetDKGPrivateKey(round, reset uint64) (coreDKG.PrivateKey, error)
- func (d *DB) GetDKGProtocol() (protocol coreDb.DKGProtocolInfo, err error)
- func (d *DB) HasBlock(hash coreCommon.Hash) bool
- func (d *DB) PutBlock(block coreTypes.Block) error
- func (d *DB) PutCompactionChainTipInfo(hash coreCommon.Hash, height uint64) error
- func (d *DB) PutDKGPrivateKey(round, reset uint64, key coreDKG.PrivateKey) error
- func (d *DB) PutOrUpdateDKGProtocol(protocol coreDb.DKGProtocolInfo) error
- func (d *DB) UpdateBlock(block coreTypes.Block) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB implement dexon-consensus BlockDatabase interface.
func NewDatabase ¶
func (*DB) GetAllBlocks ¶
func (d *DB) GetAllBlocks() (coreDb.BlockIterator, error)
func (*DB) GetCompactionChainTipInfo ¶
func (d *DB) GetCompactionChainTipInfo() (hash coreCommon.Hash, height uint64)
func (*DB) GetDKGPrivateKey ¶
func (d *DB) GetDKGPrivateKey(round, reset uint64) (coreDKG.PrivateKey, error)
func (*DB) GetDKGProtocol ¶
func (d *DB) GetDKGProtocol() ( protocol coreDb.DKGProtocolInfo, err error)
func (*DB) PutCompactionChainTipInfo ¶
func (d *DB) PutCompactionChainTipInfo(hash coreCommon.Hash, height uint64) error
func (*DB) PutDKGPrivateKey ¶
func (d *DB) PutDKGPrivateKey(round, reset uint64, key coreDKG.PrivateKey) error
func (*DB) PutOrUpdateDKGProtocol ¶
func (d *DB) PutOrUpdateDKGProtocol( protocol coreDb.DKGProtocolInfo) error
Click to show internal directories.
Click to hide internal directories.