Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlashingFeature ¶
type SlashingFeature struct { State *SlashingsState Meta interface { meta.Versioning meta.Validators meta.Proposers meta.Balance meta.Staking meta.EffectiveBalances meta.Slashing meta.Exits } }
func (*SlashingFeature) ProcessEpochSlashings ¶
func (f *SlashingFeature) ProcessEpochSlashings()
func (*SlashingFeature) SlashValidator ¶
func (f *SlashingFeature) SlashValidator(slashedIndex ValidatorIndex, whistleblowerIndex *ValidatorIndex)
Slash the validator with the given index.
type SlashingsEpochProcess ¶
type SlashingsEpochProcess interface {
ProcessEpochSlashings()
}
type SlashingsState ¶
type SlashingsState struct {
// Balances slashed at every withdrawal period
Slashings [EPOCHS_PER_SLASHINGS_VECTOR]Gwei
}
func (*SlashingsState) ResetSlashings ¶
func (state *SlashingsState) ResetSlashings(epoch Epoch)
Click to show internal directories.
Click to hide internal directories.