MCPcopy Create free account
hub / github.com/DNAProject/DNA / setWebSocketConfig

Function setWebSocketConfig

cmd/config.go:166–169  ·  view source on GitHub ↗
(ctx *cli.Context, cfg *config.WebSocketConfig)

Source from the content-addressed store, hash-verified

164}
165
166func setWebSocketConfig(ctx *cli.Context, cfg *config.WebSocketConfig) {
167 cfg.EnableHttpWs = ctx.Bool(utils.GetFlagName(utils.WsEnabledFlag))
168 cfg.HttpWsPort = ctx.Uint(utils.GetFlagName(utils.WsPortFlag))
169}
170
171func SetRpcPort(ctx *cli.Context) {
172 if ctx.IsSet(utils.GetFlagName(utils.RPCPortFlag)) {

Callers 1

SetBlockchainConfigFunction · 0.85

Calls 1

GetFlagNameFunction · 0.92

Tested by

no test coverage detected