Documentation ¶
Index ¶
- func NewChainsListener(parent chain.ChainListener, ...) chain.ChainListener
- type ChainProvider
- type Chains
- func (c *Chains) Activate(chainID isc.ChainID) error
- func (c *Chains) Close()
- func (c *Chains) Deactivate(chainID isc.ChainID) error
- func (c *Chains) Get(chainID isc.ChainID) chain.Chain
- func (c *Chains) GetNodeConnectionMetrics() nodeconnmetrics.NodeConnectionMetrics
- func (c *Chains) Run(ctx context.Context) error
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChainsListener ¶ added in v1.0.3
func NewChainsListener(parent chain.ChainListener, accessNodesCB func(chainID isc.ChainID, accessNodes []*cryptolib.PublicKey)) chain.ChainListener
Types ¶
type Chains ¶
type Chains struct {
// contains filtered or unexported fields
}
func New ¶
func New( log *logger.Logger, nodeConnection chain.NodeConnection, processorConfig *processors.Config, offledgerBroadcastUpToNPeers int, offledgerBroadcastInterval time.Duration, pullMissingRequestsFromCommittee bool, networkProvider peering.NetworkProvider, trustedNetworkManager peering.TrustedNetworkManager, chainStateStoreProvider database.ChainStateKVStoreProvider, walEnabled bool, walDir string, chainRecordRegistryProvider registry.ChainRecordRegistryProvider, dkShareRegistryProvider registry.DKShareRegistryProvider, nodeIdentityProvider registry.NodeIdentityProvider, consensusStateRegistry cmtLog.ConsensusStateRegistry, chainListener chain.ChainListener, shutdownCoordinator *shutdowncoordinator.ShutdownCoordinator, ) *Chains
func (*Chains) Deactivate ¶
Deactivate a chain in the node.
func (*Chains) GetNodeConnectionMetrics ¶ added in v0.2.3
func (c *Chains) GetNodeConnectionMetrics() nodeconnmetrics.NodeConnectionMetrics
Click to show internal directories.
Click to hide internal directories.