package
0.0.0-20240904134818-08f901de4bfb
Repository: https://github.com/dharitrione/drt-chain-go.git
Documentation: pkg.go.dev

# Functions

NewBootstrapPeerTypeProvider returns a new instance of bootstrapPeerTypeProvider It should be used for bootstrap only!.
NewInterceptedValidatorInfo creates a new intercepted validator info instance.
NewPeerTypeProvider will return a new instance of PeerTypeProvider.
NewValidatorsProvider instantiates a new validatorsProvider structure responsible for keeping account of the latest information about the validators.
NewValidatorStatisticsProcessor instantiates a new validatorStatistics structure responsible for keeping account of each validator actions in the consensus process.

# Structs

ArgInterceptedValidatorInfo is the argument used to create a new intercepted validator info.
ArgPeerTypeProvider contains all parameters needed for creating a PeerTypeProvider.
ArgValidatorsProvider contains all parameters needed for creating a validatorsProvider.
ArgValidatorStatisticsProcessor holds all dependencies for the validatorStatistics.
ListIndexUpdater will handle the updating of list type and the index for a peer.
PeerTypeProvider handles the computation of a peer type.
RatingReader will handle the fetching of the ratings.

# Interfaces

DataPool indicates the main functionality needed in order to fetch the required blocks from the pool.
StakingDataProviderAPI is able to provide staking data from the system smart contracts.