Documentation ¶
Index ¶
- type DB
- func (self *DB) Close()
- func (self *DB) GetBlockState(num types.BlockNum) state_db.Reader
- func (self *DB) GetDPOSConfigChanges() map[uint64][]byte
- func (self *DB) GetLatestState() state_db.LatestState
- func (self *DB) Init(opts Opts) *DB
- func (self *DB) Prune(state_root_to_keep []common.Hash, blk_num types.BlockNum)
- func (self *DB) RecreateColumn(column state_db.Column, nodes map[common.Hash][]byte)
- func (self *DB) SaveDPOSConfigChange(blk uint64, cfg []byte)
- func (self *DB) Snapshot(dir string, log_size_for_flush uint64) error
- type LatestState
- func (self *LatestState) BeginPendingBlock() state_db.PendingBlockState
- func (self *LatestState) Close()
- func (self *LatestState) Commit(state_root common.Hash) (err error)
- func (self *LatestState) GetCommittedDescriptor() (ret state_db.StateDescriptor)
- func (self *LatestState) Init(db *DB) *LatestState
- type Opts
- type PendingBlockState
- type VersionedKey
- type VersionedReadContext
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
}
func (*DB) GetDPOSConfigChanges ¶
func (*DB) GetLatestState ¶
func (self *DB) GetLatestState() state_db.LatestState
func (*DB) RecreateColumn ¶
func (*DB) SaveDPOSConfigChange ¶
type LatestState ¶
type LatestState struct { *DB // contains filtered or unexported fields }
func (*LatestState) BeginPendingBlock ¶
func (self *LatestState) BeginPendingBlock() state_db.PendingBlockState
func (*LatestState) Close ¶
func (self *LatestState) Close()
func (*LatestState) GetCommittedDescriptor ¶
func (self *LatestState) GetCommittedDescriptor() (ret state_db.StateDescriptor)
func (*LatestState) Init ¶
func (self *LatestState) Init(db *DB) *LatestState
type PendingBlockState ¶
type PendingBlockState struct {
// contains filtered or unexported fields
}
func (*PendingBlockState) GetNumber ¶
func (self *PendingBlockState) GetNumber() types.BlockNum
type VersionedKey ¶
func (*VersionedKey) SetKey ¶
func (self *VersionedKey) SetKey(prefix *common.Hash)
func (*VersionedKey) SetVersion ¶
func (self *VersionedKey) SetVersion(block_num types.BlockNum)
type VersionedReadContext ¶
type VersionedReadContext struct {
// contains filtered or unexported fields
}
func (*VersionedReadContext) Close ¶
func (self *VersionedReadContext) Close()
Click to show internal directories.
Click to hide internal directories.