Documentation
¶
Index ¶
- type Config
- type Option
- func WithAlwaysErrorValidatorResponse() Option
- func WithBeaconGenesisTime(t beacon.Timestamp) Option
- func WithBeaconPortStart(port int) Option
- func WithExternalIP(ip net.IP) Option
- func WithGenesisValidatorsRoot(t tree.Root) Option
- func WithHost(host string) Option
- func WithID(id uint64) Option
- func WithLogLevel(level string) Option
- func WithMaxDevP2PSessionReuses(reuse int) Option
- func WithPort(port int) Option
- func WithProxiesPortStart(portStart int) Option
- func WithSlotAction(action slot_actions.SlotAction) Option
- func WithSlotActionFrequency(freq uint64) Option
- func WithSpec(spec *beacon.Spec) Option
- func WithValidatorKeys(vk map[beacon.ValidatorIndex]*ValidatorKey) Option
- func WithValidatorKeysList(vk []*ValidatorKey) Option
- func WithValidatorKeysListFromFile(path string) Option
- func WithValidatorKeysListFromFolder(path string) Option
- type ValidatorKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
sync.Mutex
*p2p.TestP2P
ID uint64
Port int
ProxiesPortStart int
Host string
Spec *beacon.Spec
ExternalIP net.IP
BeaconGenesisTime beacon.Timestamp
GenesisValidatorsRoot tree.Root
ValidatorKeys map[beacon.ValidatorIndex]*ValidatorKey
ValidatorKeysList []*ValidatorKey
AlwaysErrorValidatorResponse bool
SlotAction slot_actions.SlotAction
SlotActionFrequency uint64
}
type Option ¶
type Option struct {
// contains filtered or unexported fields
}
func WithAlwaysErrorValidatorResponse ¶
func WithAlwaysErrorValidatorResponse() Option
func WithBeaconGenesisTime ¶
func WithBeaconPortStart ¶
func WithExternalIP ¶
func WithLogLevel ¶
func WithProxiesPortStart ¶
func WithSlotAction ¶
func WithSlotAction(action slot_actions.SlotAction) Option
func WithSlotActionFrequency ¶
func WithValidatorKeys ¶
func WithValidatorKeys(vk map[beacon.ValidatorIndex]*ValidatorKey) Option
func WithValidatorKeysList ¶
func WithValidatorKeysList(vk []*ValidatorKey) Option
func (Option) MarshalText ¶
type ValidatorKey ¶
type ValidatorKey struct {
// ValidatorSecretKey is the serialized secret key for validator duties
ValidatorSecretKey [32]byte
// ValidatorPubkey is the serialized pubkey derived from ValidatorSecretKey
ValidatorPubkey [48]byte
}
func KeyListFromFile ¶
func KeyListFromFile(path string) ([]*ValidatorKey, error)
func KeyListFromFolder ¶
func KeyListFromFolder(pathStr string) ([]*ValidatorKey, error)
func (*ValidatorKey) FillPubKey ¶
func (vk *ValidatorKey) FillPubKey() error
func (*ValidatorKey) FromHex ¶
func (vk *ValidatorKey) FromHex(secretKeyHex string) error
Click to show internal directories.
Click to hide internal directories.