Skip to content

Commit

Permalink
cmd/utils: these flags are not exclusive
Browse files Browse the repository at this point in the history
- 1100disable flag deactivates the feature
- 1100.nodisable prevents safety mechanisms from
  toggling it once activated

Date: 2023-12-06 07:11:04-07:00
Signed-off-by: meows <b5c6@protonmail.com>
  • Loading branch information
meowsbits committed Dec 6, 2023
1 parent 46d5236 commit 0b1b8e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -2086,7 +2086,6 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
cfg.EthDiscoveryURLs = SplitAndTrim(urls)
}
}
CheckExclusive(ctx, ECBP1100DisableFlag, ECBP1100NoDisableFlag)

// Override any default configs for hard coded networks.

Expand Down
2 changes: 1 addition & 1 deletion core/blockchain_af.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (bc *BlockChain) ArtificialFinalityNoDisable(n int32) {
if n == 1 {
disabledTransition := bc.chainConfig.GetECBP1100DisableTransition()
if disabledTransition != nil && big.NewInt(int64(*disabledTransition)).Cmp(big.NewInt(0)) > 0 {
log.Warn("Disable ECBP1100 (MESS) block activation number is set together with '--ecbp1100.nodisable'. ECBP1100 will not be disabled.", "disable transition block", *disabledTransition)
log.Warn("Disable ECBP1100 (MESS) block activation number is set together with '--ecbp1100.nodisable'.", "disable transition block", *disabledTransition)
}
}
}
Expand Down

0 comments on commit 0b1b8e1

Please sign in to comment.