Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadChains ¶
func LoadChains( ctx context.Context, lggr logger.Logger, cfg *config.Config, chainselToLoad []uint64, ) (fchain.BlockChains, error)
LoadChains concurrently loads all chains for the given environment. Each chain is loaded in parallel, and the results (including any errors) are collected for each chain. If any chains fail to load, the function aggregates the errors and returns a detailed error message specifying which chains failed and the reasons for failure.
Types ¶
type ChainLoader ¶
type ChainLoader interface {
Load(ctx context.Context, selector uint64) (fchain.BlockChain, error)
}
ChainLoader is an interface that defines the methods for loading a chain.
Click to show internal directories.
Click to hide internal directories.