MCPcopy Create free account
hub / github.com/ethstorage/es-node / initArchiver

Method initArchiver

ethstorage/node/node.go:317–328  ·  view source on GitHub ↗
(ctx context.Context, cfg *Config)

Source from the content-addressed store, hash-verified

315}
316
317func (n *EsNode) initArchiver(ctx context.Context, cfg *Config) error {
318 if cfg.Archiver == nil {
319 // not enabled
320 return nil
321 }
322 n.archiverAPI = archiver.NewService(*cfg.Archiver, n.storageManager, n.l1Beacon, n.l1Source, n.lg)
323 n.lg.Info("Initialized blob archiver API server")
324 if err := n.archiverAPI.Start(ctx); err != nil {
325 return fmt.Errorf("unable to start blob archiver API server: %w", err)
326 }
327 return nil
328}
329
330func (n *EsNode) initScanner(ctx context.Context, cfg *Config) {
331 if cfg.Scanner == nil {

Callers 1

initMethod · 0.95

Calls 2

NewServiceFunction · 0.92
StartMethod · 0.45

Tested by

no test coverage detected