Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Selection ¶
type Selection interface { /* When false - disables chasing timeout */ CanBeImproved() bool /* This bitset only allows values of NbsConsensus[*] */ GetConsensusVector() nodeset.ConsensusBitsetRow }
func NewSelection ¶
func NewSelection(canBeImproved bool, bitset nodeset.ConsensusBitsetRow) Selection
type SelectionStrategy ¶
type SelectionStrategy interface { CanStartVectorsEarly(consensusMembers int, countFraud int, countTrustBySome int, countTrustByNeighbors int) bool /* Result can be nil - it means no-decision */ TrySelectOnAdded(globulaStats *nodeset.ConsensusStatTable, addedNode profiles.StaticProfile, nodeStats *nodeset.ConsensusStatRow) Selection SelectOnStopped(globulaStats *nodeset.ConsensusStatTable, timeIsOut bool, bftMajority int) Selection }
type SelectionStrategyFactory ¶
type SelectionStrategyFactory interface {
CreateSelectionStrategy(aggressivePhasing bool) SelectionStrategy
}
func NewSimpleSelectionStrategyFactory ¶
func NewSimpleSelectionStrategyFactory() SelectionStrategyFactory
Click to show internal directories.
Click to hide internal directories.