Documentation ¶
Index ¶
- func GenGenesisSnap(db hpbdb.Database, recents *lru.ARCCache, signatures *lru.ARCCache, ...) (*snapshots.HpbNodeSnap, error)
- func GetAllCadNodeSnap(db hpbdb.Database, recents *lru.ARCCache, chain consensus.ChainReader, ...) (*snapshots.CadNodeSnap, error)
- func GetCadNodeFromNetwork(random []byte, rankingdata map[common.Address]float64) ([]*snapshots.CadWinner, []byte, error)
- func GetCadNodeSnap(db hpbdb.Database, recents *lru.ARCCache, chain consensus.ChainReader, ...) (*snapshots.CadNodeSnap, error)
- func GetCandDataFromCacheAndDb(db hpbdb.Database, recents *lru.ARCCache, hash common.Hash) (*snapshots.CadNodeSnap, error)
- func GetDataFromCacheAndDb(db hpbdb.Database, recents *lru.ARCCache, signatures *lru.ARCCache, ...) (*snapshots.HpbNodeSnap, error)
- func GetHpbNodeSnap(db hpbdb.Database, recents *lru.ARCCache, signatures *lru.ARCCache, ...) (*snapshots.HpbNodeSnap, error)
- func StoreCanDataToCacheAndDb(recents *lru.ARCCache, db hpbdb.Database, snap *snapshots.CadNodeSnap, ...) error
- func StoreDataToCacheAndDb(recents *lru.ARCCache, db hpbdb.Database, snap *snapshots.HpbNodeSnap, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenGenesisSnap ¶
func GenGenesisSnap(db hpbdb.Database, recents *lru.ARCCache, signatures *lru.ARCCache, config *config.PrometheusConfig, chain consensus.ChainReader) (*snapshots.HpbNodeSnap, error)
func GetAllCadNodeSnap ¶
func GetCadNodeFromNetwork ¶
func GetCadNodeFromNetwork(random []byte, rankingdata map[common.Address]float64) ([]*snapshots.CadWinner, []byte, error)
get the best one
func GetCadNodeSnap ¶
func GetDataFromCacheAndDb ¶
func GetHpbNodeSnap ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.