Documentation ¶
Index ¶
- type Validator
- func (_ *Validator) CanonicalHeadSlot(_ context.Context) (primitives.Slot, error)
- func (*Validator) ChangeHost()
- func (_ *Validator) CheckDoppelGanger(_ context.Context) error
- func (m *Validator) DeleteGraffiti(_ context.Context, _ [fieldparams.BLSPubkeyLength]byte) error
- func (_ *Validator) Done()
- func (*Validator) EventStreamIsRunning() bool
- func (m *Validator) Graffiti(_ context.Context, _ [fieldparams.BLSPubkeyLength]byte) ([]byte, error)
- func (_ *Validator) HandleKeyReload(_ context.Context, _ [][48]byte) (bool, error)
- func (*Validator) HasProposerSettings() bool
- func (*Validator) HealthTracker() *beacon.NodeHealthTracker
- func (*Validator) Host() string
- func (m *Validator) Keymanager() (keymanager.IKeymanager, error)
- func (_ *Validator) LogSubmittedAtts(_ primitives.Slot)
- func (_ *Validator) LogSubmittedSyncCommitteeMessages()
- func (_ *Validator) LogValidatorGainsAndLosses(_ context.Context, _ primitives.Slot) error
- func (_ *Validator) NextSlot() <-chan primitives.Slot
- func (*Validator) ProcessEvent(event *event.Event)
- func (_ *Validator) ProposeBlock(_ context.Context, _ primitives.Slot, _ [48]byte)
- func (m *Validator) ProposerSettings() *proposer.Settings
- func (_ *Validator) PushProposerSettings(_ context.Context, _ keymanager.IKeymanager, _ primitives.Slot, _ bool) error
- func (_ *Validator) ReceiveSlots(_ context.Context, _ chan<- error)
- func (_ *Validator) RolesAt(_ context.Context, _ primitives.Slot) (map[[48]byte][]iface2.ValidatorRole, error)
- func (m *Validator) SetGraffiti(_ context.Context, _ [fieldparams.BLSPubkeyLength]byte, graffiti []byte) error
- func (m *Validator) SetProposerSettings(_ context.Context, settings *proposer.Settings) error
- func (_ *Validator) SetPubKeyToValidatorIndexMap(_ context.Context, _ keymanager.IKeymanager) error
- func (_ *Validator) SignValidatorRegistrationRequest(_ context.Context, _ iface2.SigningFunc, _ *ethpb.ValidatorRegistrationV1) (*ethpb.SignedValidatorRegistrationV1, bool, error)
- func (_ *Validator) SlotDeadline(_ primitives.Slot) time.Time
- func (*Validator) StartEventStream(_ context.Context, _ []string, _ chan<- *event.Event)
- func (_ *Validator) SubmitAggregateAndProof(_ context.Context, _ primitives.Slot, _ [48]byte)
- func (_ *Validator) SubmitAttestation(_ context.Context, _ primitives.Slot, _ [48]byte)
- func (_ *Validator) SubmitSignedContributionAndProof(_ context.Context, _ primitives.Slot, _ [48]byte)
- func (_ *Validator) SubmitSyncCommitteeMessage(_ context.Context, _ primitives.Slot, _ [48]byte)
- func (_ *Validator) UpdateDomainDataCaches(_ context.Context, _ primitives.Slot)
- func (_ *Validator) UpdateDuties(_ context.Context, _ primitives.Slot) error
- func (_ *Validator) WaitForActivation(_ context.Context, _ chan [][48]byte) error
- func (_ *Validator) WaitForChainStart(_ context.Context) error
- func (_ *Validator) WaitForKeymanagerInitialization(_ context.Context) error
- func (_ *Validator) WaitForSync(_ context.Context) error
- type Wallet
- func (w *Wallet) AccountNames() ([]string, error)
- func (w *Wallet) AccountsDir() string
- func (w *Wallet) Dir() string
- func (w *Wallet) Exists() (bool, error)
- func (_ *Wallet) InitializeKeymanager(_ context.Context, _ iface.InitKeymanagerConfig) (keymanager.IKeymanager, error)
- func (w *Wallet) KeymanagerKind() keymanager.Kind
- func (w *Wallet) Password() string
- func (w *Wallet) ReadFileAtPath(_ context.Context, pathName, fileName string) ([]byte, error)
- func (w *Wallet) WriteFileAtPath(_ context.Context, pathName, fileName string, data []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct { Km keymanager.IKeymanager // contains filtered or unexported fields }
func (*Validator) CanonicalHeadSlot ¶
func (*Validator) ChangeHost ¶ added in v5.1.0
func (*Validator) ChangeHost()
func (*Validator) CheckDoppelGanger ¶
func (*Validator) DeleteGraffiti ¶ added in v5.0.2
func (m *Validator) DeleteGraffiti(_ context.Context, _ [fieldparams.BLSPubkeyLength]byte) error
DeleteGraffiti for mocking
func (*Validator) EventStreamIsRunning ¶
func (*Validator) Graffiti ¶ added in v5.1.0
func (m *Validator) Graffiti(_ context.Context, _ [fieldparams.BLSPubkeyLength]byte) ([]byte, error)
Graffiti for mocking
func (*Validator) HandleKeyReload ¶
func (*Validator) HasProposerSettings ¶
HasProposerSettings for mocking
func (*Validator) HealthTracker ¶ added in v5.0.2
func (*Validator) HealthTracker() *beacon.NodeHealthTracker
func (*Validator) Keymanager ¶
func (m *Validator) Keymanager() (keymanager.IKeymanager, error)
func (*Validator) LogSubmittedAtts ¶
func (_ *Validator) LogSubmittedAtts(_ primitives.Slot)
func (*Validator) LogSubmittedSyncCommitteeMessages ¶
func (_ *Validator) LogSubmittedSyncCommitteeMessages()
func (*Validator) LogValidatorGainsAndLosses ¶
func (*Validator) NextSlot ¶
func (_ *Validator) NextSlot() <-chan primitives.Slot
func (*Validator) ProcessEvent ¶ added in v5.0.2
func (*Validator) ProposeBlock ¶
func (*Validator) ProposerSettings ¶
ProposerSettings for mocking
func (*Validator) PushProposerSettings ¶
func (_ *Validator) PushProposerSettings(_ context.Context, _ keymanager.IKeymanager, _ primitives.Slot, _ bool) error
PushProposerSettings for mocking
func (*Validator) ReceiveSlots ¶
func (*Validator) RolesAt ¶
func (_ *Validator) RolesAt(_ context.Context, _ primitives.Slot) (map[[48]byte][]iface2.ValidatorRole, error)
func (*Validator) SetGraffiti ¶ added in v5.0.2
func (m *Validator) SetGraffiti(_ context.Context, _ [fieldparams.BLSPubkeyLength]byte, graffiti []byte) error
SetGraffiti for mocking
func (*Validator) SetProposerSettings ¶
SetProposerSettings for mocking
func (*Validator) SetPubKeyToValidatorIndexMap ¶
func (_ *Validator) SetPubKeyToValidatorIndexMap(_ context.Context, _ keymanager.IKeymanager) error
SetPubKeyToValidatorIndexMap for mocking
func (*Validator) SignValidatorRegistrationRequest ¶
func (_ *Validator) SignValidatorRegistrationRequest(_ context.Context, _ iface2.SigningFunc, _ *ethpb.ValidatorRegistrationV1) (*ethpb.SignedValidatorRegistrationV1, bool, error)
SignValidatorRegistrationRequest for mocking
func (*Validator) SlotDeadline ¶
func (_ *Validator) SlotDeadline(_ primitives.Slot) time.Time
func (*Validator) StartEventStream ¶
func (*Validator) SubmitAggregateAndProof ¶
func (*Validator) SubmitAttestation ¶
func (*Validator) SubmitSignedContributionAndProof ¶
func (*Validator) SubmitSyncCommitteeMessage ¶
func (*Validator) UpdateDomainDataCaches ¶
func (_ *Validator) UpdateDomainDataCaches(_ context.Context, _ primitives.Slot)
func (*Validator) UpdateDuties ¶
func (*Validator) WaitForActivation ¶
func (*Validator) WaitForChainStart ¶
func (*Validator) WaitForKeymanagerInitialization ¶
type Wallet ¶
type Wallet struct { InnerAccountsDir string Directories []string Files map[string]map[string][]byte EncryptedSeedFile []byte AccountPasswords map[string]string WalletPassword string UnlockAccounts bool HasWriteFileError bool WalletDir string Kind keymanager.Kind // contains filtered or unexported fields }
Wallet contains an in-memory, simulated wallet implementation.
func (*Wallet) InitializeKeymanager ¶
func (_ *Wallet) InitializeKeymanager(_ context.Context, _ iface.InitKeymanagerConfig) (keymanager.IKeymanager, error)
InitializeKeymanager --
func (*Wallet) KeymanagerKind ¶ added in v5.1.0
func (w *Wallet) KeymanagerKind() keymanager.Kind
KeymanagerKind --
func (*Wallet) ReadFileAtPath ¶
ReadFileAtPath --
Click to show internal directories.
Click to hide internal directories.