Documentation
¶
Index ¶
- Variables
- func Apply(bc engine.ChainReader, state *state.DB) error
- func BallotResult(bc engine.ChainReader, header *block.Header, shardID uint32) (shard.SlotList, shard.SlotList, shard.SlotList, error)
- func BlockSigners(bitmap []byte, parentCommittee *shard.Committee) (shard.SlotList, shard.SlotList, error)
- func IncrementValidatorSigningCounts(chain engine.ChainReader, header *block.Header, shardID uint32, ...) error
- func SetInactiveUnavailableValidators(bc engine.ChainReader, state *state.DB, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDivByZero .. ErrDivByZero = errors.New("toSign of availability cannot be 0, mistake in protocol") )
Functions ¶
func BallotResult ¶
func BallotResult( bc engine.ChainReader, header *block.Header, shardID uint32, ) (shard.SlotList, shard.SlotList, shard.SlotList, error)
BallotResult returns (parentCommittee.Slots, payable, missing, err)
func BlockSigners ¶
func BlockSigners( bitmap []byte, parentCommittee *shard.Committee, ) (shard.SlotList, shard.SlotList, error)
BlockSigners ..
func IncrementValidatorSigningCounts ¶
func IncrementValidatorSigningCounts( chain engine.ChainReader, header *block.Header, shardID uint32, state *state.DB, onlyConsider map[common.Address]struct{}, ) error
IncrementValidatorSigningCounts ..
func SetInactiveUnavailableValidators ¶
func SetInactiveUnavailableValidators( bc engine.ChainReader, state *state.DB, onlyConsider map[common.Address]struct{}, ) error
SetInactiveUnavailableValidators sets the validator to inactive and thereby keeping it out of consideration in the pool of validators for whenever committee selection happens in future, the signing threshold is 66%
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.