Documentation ¶
Index ¶
- Variables
- func AccumulateRewardsAndCountSigs(bc engine.ChainReader, state *state.DB, header *block.Header, ...) (reward.Reader, error)
- func GetPublicKeys(chain engine.ChainReader, header *block.Header, reCalculate bool) ([]*bls.PublicKey, error)
- func QuorumForBlock(chain engine.ChainReader, h *block.Header, reCalculate bool) (quorum int, err error)
- func ReadPublicKeysFromLastBlock(bc engine.ChainReader, header *block.Header) ([]*bls.PublicKey, error)
- func ReadSignatureBitmapByPublicKeys(recvPayload []byte, publicKeys []*bls.PublicKey) (*bls.Sign, *bls2.Mask, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Engine = &engineImpl{nil}
Engine is an algorithm-agnostic consensus engine.
Functions ¶
func AccumulateRewardsAndCountSigs ¶ added in v1.3.8
func AccumulateRewardsAndCountSigs( bc engine.ChainReader, state *state.DB, header *block.Header, beaconChain engine.ChainReader, ) (reward.Reader, error)
AccumulateRewardsAndCountSigs credits the coinbase of the given block with the mining reward. The total reward consists of the static block reward This func also do IncrementValidatorSigningCounts for validators
func GetPublicKeys ¶
func GetPublicKeys( chain engine.ChainReader, header *block.Header, reCalculate bool, ) ([]*bls.PublicKey, error)
GetPublicKeys finds the public keys of the committee that signed the block header
func QuorumForBlock ¶
func QuorumForBlock( chain engine.ChainReader, h *block.Header, reCalculate bool, ) (quorum int, err error)
QuorumForBlock returns the quorum for the given block header.
func ReadPublicKeysFromLastBlock ¶
func ReadPublicKeysFromLastBlock( bc engine.ChainReader, header *block.Header, ) ([]*bls.PublicKey, error)
ReadPublicKeysFromLastBlock finds the public keys of last block's committee
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.