Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cmd/gossamer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,11 @@ func setDotCoreConfig(ctx *cli.Context, tomlCfg ctoml.CoreConfig, cfg *dot.CoreC
cfg.BabeAuthority = tomlCfg.Roles == types.AuthorityRole
cfg.GrandpaAuthority = tomlCfg.Roles == types.AuthorityRole
cfg.GrandpaInterval = time.Second * time.Duration(tomlCfg.GrandpaInterval)
cfg.BABELead = ctx.GlobalBool(BABELeadFlag.Name)

cfg.BABELead = tomlCfg.BABELead
if ctx.IsSet(BABELeadFlag.Name) {
cfg.BABELead = ctx.GlobalBool(BABELeadFlag.Name)
}
Comment thread
kishansagathiya marked this conversation as resolved.

// check --roles flag and update node configuration
if roles := ctx.GlobalString(RolesFlag.Name); roles != "" {
Expand Down
1 change: 1 addition & 0 deletions dot/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ func DevConfig() *Config {
BabeAuthority: dev.DefaultBabeAuthority,
GrandpaAuthority: dev.DefaultGrandpaAuthority,
WasmInterpreter: dev.DefaultWasmInterpreter,
BABELead: dev.DefaultBabeAuthority,
},
Network: NetworkConfig{
Port: dev.DefaultNetworkPort,
Expand Down