chains

package
v0.6.0-alpha.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 ChainProvider

type ChainProvider func(chainID isc.ChainID) chain.Chain

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,
	walFolderPath string,
	chainRecordRegistryProvider registry.ChainRecordRegistryProvider,
	dkShareRegistryProvider registry.DKShareRegistryProvider,
	nodeIdentityProvider registry.NodeIdentityProvider,
	consensusStateRegistry cmtLog.ConsensusStateRegistry,
	chainListener chain.ChainListener,
	shutdownCoordinator *shutdown.Coordinator,
	chainMetricsProvider *metrics.ChainMetricsProvider,
) *Chains

func (*Chains) Activate

func (c *Chains) Activate(chainID isc.ChainID) error

Activate activates a chain in the node.

func (*Chains) Close added in v1.0.3

func (c *Chains) Close()

func (*Chains) Deactivate

func (c *Chains) Deactivate(chainID isc.ChainID) error

Deactivate a chain in the node.

func (*Chains) Get

func (c *Chains) Get(chainID isc.ChainID) chain.Chain

Get returns active chain object or nil if it doesn't exist lazy unsubscribing

func (*Chains) Run added in v1.0.3

func (c *Chains) Run(ctx context.Context) error

type Provider

type Provider func() *Chains // TODO: Use DI instead of that.

func (Provider) ChainProvider

func (chains Provider) ChainProvider() func(chainID isc.ChainID) chain.Chain

Directories

Path Synopsis
amDist
The algorithm here follows the specification `WaspChainAccessNodesV4.tla`.
The algorithm here follows the specification `WaspChainAccessNodesV4.tla`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL