Versions in this module Expand all Collapse all v1 v1.1.66 Jun 17, 2021 v1.1.65 Jun 17, 2021 Changes in this version + func NewDisabledRatingReader(startRating uint32) *disabledRatingReader + func NewRatingStepData(proposerIncreaseRatingStep int32, proposerDecreaseRatingStep int32, ...) process.RatingsStepHandler + type BlockSigningRater struct + func NewBlockSigningRater(ratingsData process.RatingsInfoHandler) (*BlockSigningRater, error) + func (bsr *BlockSigningRater) ComputeDecreaseProposer(shardId uint32, currentRating uint32, consecutiveMisses uint32) uint32 + func (bsr *BlockSigningRater) ComputeDecreaseValidator(shardId uint32, currentRating uint32) uint32 + func (bsr *BlockSigningRater) ComputeIncreaseProposer(shardId uint32, currentRating uint32) uint32 + func (bsr *BlockSigningRater) ComputeIncreaseValidator(shardId uint32, currentRating uint32) uint32 + func (bsr *BlockSigningRater) GetChance(currentRating uint32) uint32 + func (bsr *BlockSigningRater) GetSignedBlocksThreshold() float32 + func (bsr *BlockSigningRater) GetStartRating() uint32 + func (bsr *BlockSigningRater) IsInterfaceNil() bool + func (bsr *BlockSigningRater) RevertIncreaseValidator(shardId uint32, currentRating uint32, nrReverts uint32) uint32 + type DisabledListIndexUpdater struct + func (n *DisabledListIndexUpdater) IsInterfaceNil() bool + func (n *DisabledListIndexUpdater) UpdateListAndIndex(_ string, _ uint32, _ string, _ uint32) error + type RatingStep struct + func (rd *RatingStep) ConsecutiveMissedBlocksPenalty() float32 + func (rd *RatingStep) ProposerDecreaseRatingStep() int32 + func (rd *RatingStep) ProposerIncreaseRatingStep() int32 + func (rd *RatingStep) ValidatorDecreaseRatingStep() int32 + func (rd *RatingStep) ValidatorIncreaseRatingStep() int32 + type RatingsData struct + func NewRatingsData(args RatingsDataArg) (*RatingsData, error) + func (rd *RatingsData) IsInterfaceNil() bool + func (rd *RatingsData) MaxRating() uint32 + func (rd *RatingsData) MetaChainRatingsStepHandler() process.RatingsStepHandler + func (rd *RatingsData) MinRating() uint32 + func (rd *RatingsData) SelectionChances() []process.SelectionChance + func (rd *RatingsData) ShardChainRatingsStepHandler() process.RatingsStepHandler + func (rd *RatingsData) SignedBlocksThreshold() float32 + func (rd *RatingsData) StartRating() uint32 + type RatingsDataArg struct + Config config.RatingsConfig + MetaConsensusSize uint32 + MetaMinNodes uint32 + RoundDurationMiliseconds uint64 + ShardConsensusSize uint32 + ShardMinNodes uint32 + type SelectionChance struct + ChancePercent uint32 + MaxThreshold uint32 + func (sc *SelectionChance) GetChancePercent() uint32 + func (sc *SelectionChance) GetMaxThreshold() uint32