(ctx *cli.Context, cfg *config.ConsensusConfig)
| 115 | } |
| 116 | |
| 117 | func 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 | |
| 122 | func setP2PNodeConfig(ctx *cli.Context, cfg *config.P2PNodeConfig) { |
| 123 | cfg.NetworkId = uint32(ctx.Uint(utils.GetFlagName(utils.NetworkIdFlag))) |
no test coverage detected