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, error)
- func (c *Chains) IsArchiveNode() bool
- func (c *Chains) Run(ctx context.Context) error
- func (c *Chains) ValidatorAddress() iotago.Address
- 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, validatorAddrStr string, deriveAliasOutputByQuorum bool, pipeliningLimit int, postponeRecoveryMilestones int, consensusDelay time.Duration, recoveryTimeout time.Duration, networkProvider peering.NetworkProvider, trustedNetworkManager peering.TrustedNetworkManager, chainStateStoreProvider database.ChainStateKVStoreProvider, walLoadToStore bool, walEnabled bool, walFolderPath string, smBlockCacheMaxSize int, smBlockCacheBlocksInCacheDuration time.Duration, smBlockCacheBlockCleaningPeriod time.Duration, smStateManagerGetBlockNodeCount int, smStateManagerGetBlockRetry time.Duration, smStateManagerRequestCleaningPeriod time.Duration, smStateManagerStatusLogPeriod time.Duration, smStateManagerTimerTickPeriod time.Duration, smPruningMinStatesToKeep int, smPruningMaxStatesToDelete int, snapshotsToLoad []string, snapshotPeriod uint32, snapshotDelay uint32, snapshotFolderPath string, snapshotNetworkPaths []string, chainRecordRegistryProvider registry.ChainRecordRegistryProvider, dkShareRegistryProvider registry.DKShareRegistryProvider, nodeIdentityProvider registry.NodeIdentityProvider, consensusStateRegistry cmt_log.ConsensusStateRegistry, chainListener chain.ChainListener, mempoolSettings mempool.Settings, mempoolBroadcastInterval time.Duration, shutdownCoordinator *shutdown.Coordinator, chainMetricsProvider *metrics.ChainMetricsProvider, ) *Chains
func (*Chains) Deactivate ¶
Deactivate a chain in the node.
func (*Chains) IsArchiveNode ¶ added in v1.0.3
func (*Chains) ValidatorAddress ¶ added in v1.0.3
Click to show internal directories.
Click to hide internal directories.