Documentation ¶
Index ¶
- type ChainProvider
- type Chains
- func (c *Chains) Activate(chr *registry.ChainRecord, registryProvider registry.Provider, ...) error
- func (c *Chains) ActivateAllFromRegistry(registryProvider registry.Provider, allMetrics *metrics.Metrics) error
- func (c *Chains) Deactivate(chr *registry.ChainRecord) error
- func (c *Chains) Dismiss()
- func (c *Chains) Get(chainID *iscp.ChainID, includeDeactivated ...bool) chain.Chain
- func (c *Chains) GetNodeConnectionMetrics() nodeconnmetrics.NodeConnectionMetrics
- func (c *Chains) SetNodeConn(nodeConn chain.NodeConnection)
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chains ¶
type Chains struct {
// contains filtered or unexported fields
}
func New ¶
func New( log *logger.Logger, processorConfig *processors.Config, offledgerBroadcastUpToNPeers int, offledgerBroadcastInterval time.Duration, pullMissingRequestsFromCommittee bool, networkProvider peering.NetworkProvider, getOrCreateKVStore dbmanager.ChainKVStoreProvider, ) *Chains
func (*Chains) Activate ¶
func (c *Chains) Activate(chr *registry.ChainRecord, registryProvider registry.Provider, allMetrics *metrics.Metrics) error
Activate activates chain on the Wasp node: - creates chain object - insert it into the runtime registry - subscribes for related transactions in he IOTA node
func (*Chains) ActivateAllFromRegistry ¶
func (*Chains) Deactivate ¶
func (c *Chains) Deactivate(chr *registry.ChainRecord) error
Deactivate deactivates chain in the node
func (*Chains) GetNodeConnectionMetrics ¶ added in v0.2.3
func (c *Chains) GetNodeConnectionMetrics() nodeconnmetrics.NodeConnectionMetrics
func (*Chains) SetNodeConn ¶ added in v0.2.3
func (c *Chains) SetNodeConn(nodeConn chain.NodeConnection)
Click to show internal directories.
Click to hide internal directories.