Documentation ¶
Index ¶
- func DeleteAllShardFinalityProof(db incdb.Database, shardID byte) error
- func DeleteBlackListValidator(db incdb.KeyValueWriter, validator string) error
- func DeleteProposeHistory(db incdb.Database, chainID int, currentTimeSlot int64) error
- func DeleteReceiveBlockByHash(db incdb.Database, chainID int, blockHash string) error
- func DeleteShardFinalityProof(db incdb.Database, shardID byte, hash common.Hash) error
- func DeleteVoteHistory(db incdb.Database, chainID int, height uint64) error
- func DeleteVotesByHash(db incdb.Database, hash string) error
- func GetAllBlackListValidator(db incdb.Database) (map[string]*BlackListValidator, error)
- func GetAllProposeHistory(db incdb.Database, chainID int) (map[int64]struct{}, error)
- func GetAllReceiveBlockByHash(db incdb.Database, chainID int) (map[string][]byte, error)
- func GetAllVoteHistory(db incdb.Database, chainID int) (map[uint64][]byte, error)
- func GetByzantineBlackListKey(validator string) []byte
- func GetByzantineBlackListPrefix() []byte
- func GetConsensusDatabase() incdb.Database
- func GetProposeHistoryByKey(db incdb.Database, chainID int, currentTimeSlot int64) (interface{}, error)
- func GetProposeHistoryKey(chainID int, timeSlot uint64) []byte
- func GetProposeHistoryPrefix(chainID int) []byte
- func GetReceiveBlockByHashKey(chainID int, blockHash string) []byte
- func GetReceiveBlockByHashPrefix(chainID int) []byte
- func GetShardFinalityProof(db incdb.KeyValueReader, shardID byte, hash common.Hash) (map[string]interface{}, error)
- func GetShardFinalityProofKey(shardID byte, hash common.Hash) []byte
- func GetShardFinalityProofPrefix(shardID byte) []byte
- func GetVoteByBlockHashPrefixKey(hash string) []byte
- func GetVoteHistory(db incdb.Database, chainID int, height uint64) (interface{}, error)
- func GetVoteHistoryKey(chainID int, height uint64) []byte
- func GetVoteHistoryPrefix(chainID int) []byte
- func GetVotesByBlockHash(db incdb.Database, hash string) (map[string][]byte, error)
- func SetConsensusDatabase(db incdb.Database)
- func StoreBlackListValidator(db incdb.KeyValueWriter, validator string, ...) error
- func StoreProposeHistory(db incdb.Database, chainID int, currentTimeSlot int64) error
- func StoreReceiveBlockByHash(db incdb.Database, chainID int, blockHash string, value []byte) error
- func StoreShardFinalityProof(db incdb.KeyValueWriter, shardID byte, hash common.Hash, ...) error
- func StoreVoteByBlockHash(db incdb.Database, hash string, validator string, vote []byte) error
- func StoreVoteHistory(db incdb.Database, chainID int, height uint64, value []byte) error
- type BlackListValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteBlackListValidator ¶
func DeleteBlackListValidator(db incdb.KeyValueWriter, validator string) error
func DeleteProposeHistory ¶
func DeleteVoteHistory ¶
func GetAllBlackListValidator ¶
func GetAllBlackListValidator(db incdb.Database) (map[string]*BlackListValidator, error)
func GetAllProposeHistory ¶
func GetAllVoteHistory ¶
func GetByzantineBlackListPrefix ¶
func GetByzantineBlackListPrefix() []byte
func GetConsensusDatabase ¶
func GetProposeHistoryByKey ¶
func GetProposeHistoryKey ¶
func GetProposeHistoryPrefix ¶
func GetShardFinalityProof ¶
func GetVoteHistory ¶
func GetVoteHistoryKey ¶
func GetVoteHistoryPrefix ¶
func GetVotesByBlockHash ¶
func SetConsensusDatabase ¶
func StoreBlackListValidator ¶
func StoreBlackListValidator(db incdb.KeyValueWriter, validator string, blackListValidator *BlackListValidator) error
func StoreProposeHistory ¶
func StoreReceiveBlockByHash ¶
func StoreShardFinalityProof ¶
func StoreVoteByBlockHash ¶
Types ¶
type BlackListValidator ¶
func GetBlackListValidator ¶
func GetBlackListValidator(db incdb.KeyValueReader, validator string) (bool, *BlackListValidator, error)
func NewBlackListValidator ¶
func NewBlackListValidator() *BlackListValidator
Click to show internal directories.
Click to hide internal directories.