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

Function setConsensusConfig

cmd/config.go:117–120  ·  view source on GitHub ↗
(ctx *cli.Context, cfg *config.ConsensusConfig)

Source from the content-addressed store, hash-verified

115}
116
117func setConsensusConfig(ctx *cli.Context, cfg *config.ConsensusConfig) {
118 cfg.EnableConsensus = ctx.Bool(utils.GetFlagName(utils.EnableConsensusFlag))
119 cfg.MaxTxInBlock = ctx.Uint(utils.GetFlagName(utils.MaxTxInBlockFlag))
120}
121
122func setP2PNodeConfig(ctx *cli.Context, cfg *config.P2PNodeConfig) {
123 cfg.NetworkId = uint32(ctx.Uint(utils.GetFlagName(utils.NetworkIdFlag)))

Callers 1

SetBlockchainConfigFunction · 0.85

Calls 1

GetFlagNameFunction · 0.92

Tested by

no test coverage detected