Documentation
¶
Index ¶
- Variables
- 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(bc Reader, staked *shard.StakedSlots, state *state.DB, ...) error
- 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( 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( bc Reader, staked *shard.StakedSlots, state *state.DB, signers, missing shard.SlotList, ) error
IncrementValidatorSigningCounts ..
Types ¶
Click to show internal directories.
Click to hide internal directories.