Documentation ¶
Index ¶
- func DbInitAll(pathname string)
- func GetEpochLeaderGroup(epochId uint64) [][]byte
- func GetRBProposerGroup(epochId uint64) [][]byte
- func GetStakerInfoBytes(epochId uint64, addr common.Address) []byte
- type Db
- func (s *Db) DbClose()
- func (s *Db) DbInit(dbPath string)
- func (s *Db) Get(epochID uint64, key string) ([]byte, error)
- func (s *Db) GetStorageByteArray(epochID uint64) [][]byte
- func (s *Db) GetWithIndex(epochID uint64, index uint64, key string) ([]byte, error)
- func (s *Db) Put(epochID uint64, key string, value []byte) ([]byte, error)
- func (s *Db) PutWithIndex(epochID uint64, index uint64, key string, value []byte) ([]byte, error)
- type Proposer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEpochLeaderGroup ¶
func GetRBProposerGroup ¶
Types ¶
type Db ¶
type Db struct {
// contains filtered or unexported fields
}
Db is the wanpos leveldb class
func GetDbByName ¶
func (*Db) DbInit ¶
DbInit use to init leveldb in this object, user should not use this. It is automate called in init().
func (*Db) GetStorageByteArray ¶
GetStorageByteArray : cb is callback function. cb return true indicating like to continue, return false indicating stop
func (*Db) GetWithIndex ¶
GetWithIndex use to get a key-value store with a given epochID and Index
Click to show internal directories.
Click to hide internal directories.