Documentation
¶
Overview ¶
lint:nopanic -- Test tooling / code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameters ¶
type Parameters struct {
SecondsPerSlot uint64
SlotsPerEpoch primitives.Slot
AggregationPercent float64
ProposerSlashingProbab float64
AttesterSlashingProbab float64
NumValidators uint64
NumEpochs uint64
}
Parameters for a slasher simulator.
func DefaultParams ¶
func DefaultParams() *Parameters
DefaultParams for launching a slasher simulator.
type ServiceConfig ¶
type ServiceConfig struct {
Params *Parameters
Database db.SlasherDatabase
StateNotifier statefeed.Notifier
AttestationStateFetcher blockchain.AttestationStateFetcher
HeadStateFetcher blockchain.HeadFetcher
StateGen stategen.StateManager
SlashingsPool slashings.PoolManager
PrivateKeysByValidatorIndex map[primitives.ValidatorIndex]bls.SecretKey
SyncChecker sync.Checker
ClockWaiter startup.ClockWaiter
ClockSetter startup.ClockSetter
}
ServiceConfig for the simulator.
type Simulator ¶
type Simulator struct {
// contains filtered or unexported fields
}
Simulator defines a struct which can launch a slasher simulation at scale using configuration parameters.
Click to show internal directories.
Click to hide internal directories.