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

Function NewConfig

ethstorage/archiver/config.go:58–69  ·  view source on GitHub ↗
(ctx *cli.Context)

Source from the content-addressed store, hash-verified

56}
57
58func NewConfig(ctx *cli.Context) *Config {
59 cfg := Config{
60 Enabled: ctx.GlobalBool(EnabledFlagName),
61 ListenAddr: ctx.GlobalString(ListenAddrFlagName),
62 ListenPort: ctx.GlobalInt(ListenPortFlagName),
63 MaxBlobsPerBlock: ctx.GlobalInt(MaxBlobsPerBlockName),
64 }
65 if cfg.Enabled {
66 return &cfg
67 }
68 return nil
69}

Callers 1

NewConfigFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected