Documentation ¶
Index ¶
- type NetworkCoordinator
- func (nc *NetworkCoordinator) GetCert(ctx context.Context, nodeRef core.RecordRef) (core.Certificate, error)
- func (nc *NetworkCoordinator) Init(ctx context.Context) error
- func (nc *NetworkCoordinator) SetPulse(ctx context.Context, pulse core.Pulse) error
- func (nc *NetworkCoordinator) ValidateCert(ctx context.Context, certificate core.Certificate) (bool, error)
- func (nc *NetworkCoordinator) WriteActiveNodes(ctx context.Context, number core.PulseNumber, activeNodes []core.Node) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkCoordinator ¶
type NetworkCoordinator struct { Certificate core.Certificate `inject:""` NetworkSwitcher core.NetworkSwitcher `inject:""` ContractRequester core.ContractRequester `inject:""` GenesisDataProvider core.GenesisDataProvider `inject:""` // contains filtered or unexported fields }
NetworkCoordinator encapsulates logic of network configuration
func (*NetworkCoordinator) GetCert ¶ added in v0.6.3
func (nc *NetworkCoordinator) GetCert(ctx context.Context, nodeRef core.RecordRef) (core.Certificate, error)
GetCert method returns node certificate
func (*NetworkCoordinator) Init ¶ added in v0.6.3
func (nc *NetworkCoordinator) Init(ctx context.Context) error
Init implements interface of Component
func (*NetworkCoordinator) ValidateCert ¶ added in v0.6.3
func (nc *NetworkCoordinator) ValidateCert(ctx context.Context, certificate core.Certificate) (bool, error)
ValidateCert validates node certificate
func (*NetworkCoordinator) WriteActiveNodes ¶
func (nc *NetworkCoordinator) WriteActiveNodes(ctx context.Context, number core.PulseNumber, activeNodes []core.Node) error
WriteActiveNodes writes active nodes to ledger
Click to show internal directories.
Click to hide internal directories.