Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSkipRateReference ¶
GetSkipRateReference returns the total and skip amount in a epoch of the validator from the given produced map and the validator schedule
func UpdateValidatorSkipRates ¶
func UpdateValidatorSkipRates(lastEpoch uint64, db db.VoteStatusDb, client ClientProxy) error
UpdateValidatorSkipRates properly stores the skip rates of all validators inside the database
func UpdateValidatorsStatus ¶
func UpdateValidatorsStatus(db db.VoteStatusDb, client ClientProxy) error
UpdateValidatorsStatus insert current validators status
Types ¶
type ClientProxy ¶
type ClientProxy interface { GetVoteAccountsWithSlot() (uint64, clienttypes.VoteAccounts, error) GetLeaderSchedule(uint64) (clienttypes.LeaderSchedule, error) }
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func NewModule ¶
func NewModule(db db.VoteStatusDb, client ClientProxy) *Module
func (*Module) RegisterPeriodicOperations ¶
RegisterPeriodicOperations implements modules.Module
func (*Module) RunPeriodicOperations ¶
Click to show internal directories.
Click to hide internal directories.