Documentation
¶
Index ¶
- Variables
- func BallotResult(parentHeader, header *block.Header, parentShardState *shard.State, ...) (shard.SlotList, shard.SlotList, shard.SlotList, error)
- func BlockSigners(bitmap []byte, parentCommittee *shard.Committee) (shard.SlotList, shard.SlotList, error)
- func ComputeAndMutateEPOSStatus(bc Reader, state *state.DB, addr common.Address) error
- func ComputeCurrentSigning(snapshot, wrapper *staking.ValidatorWrapper) *staking.Computed
- func IncrementValidatorSigningCounts(bc Reader, staked *shard.StakedSlots, state *state.DB, ...) error
- func IsBelowSigningThreshold(quotient numeric.Dec) bool
- type Reader
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( parentHeader, header *block.Header, parentShardState *shard.State, 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 ComputeAndMutateEPOSStatus ¶ added in v1.3.6
ComputeAndMutateEPOSStatus 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%
func ComputeCurrentSigning ¶ added in v1.3.4
func ComputeCurrentSigning( snapshot, wrapper *staking.ValidatorWrapper, ) *staking.Computed
ComputeCurrentSigning returns (signed, toSign, quotient, error)
func IncrementValidatorSigningCounts ¶
func IncrementValidatorSigningCounts( bc Reader, staked *shard.StakedSlots, state *state.DB, signers, missing shard.SlotList, ) error
IncrementValidatorSigningCounts ..
func IsBelowSigningThreshold ¶ added in v1.3.4
IsBelowSigningThreshold ..
Types ¶
Click to show internal directories.
Click to hide internal directories.