Skip to content

Commit

Permalink
cmd/geth,eth,eth/ethconfig: rename config field ECBP1100 -> OverrideE…
Browse files Browse the repository at this point in the history
…CBP1100

Date: 2024-02-05 11:00:37-07:00
Signed-off-by: meows <[email protected]>
  • Loading branch information
meowsbits committed Feb 5, 2024
1 parent 0ae1b04 commit 82ebc79
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/geth/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func makeFullNode(ctx *cli.Context) (*node.Node, ethapi.Backend) {
stack, cfg := makeConfigNode(ctx)
if ctx.IsSet(utils.ECBP1100Flag.Name) {
if n := ctx.Uint64(utils.ECBP1100Flag.Name); n != math.MaxUint64 {
cfg.Eth.ECBP1100 = &n
cfg.Eth.OverrideECBP1100 = &n
}
}
if ctx.IsSet(utils.ECBP1100NoDisableFlag.Name) {
Expand Down
2 changes: 1 addition & 1 deletion eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
}
eth.bloomIndexer.Start(eth.blockchain)
// Handle artificial finality config override cases.
if n := config.ECBP1100; n != nil {
if n := config.OverrideECBP1100; n != nil {
if err := eth.blockchain.Config().SetECBP1100Transition(n); err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion eth/ethconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ type Config struct {
CheckpointOracle *ctypes.CheckpointOracleConfig `toml:",omitempty"`

// Manual configuration field for ECBP1100 activation number. Used for modifying genesis config via CLI flag.
ECBP1100 *uint64 `toml:",omitempty"`
OverrideECBP1100 *uint64 `toml:",omitempty"`
// Manual configuration field for ECBP1100's disablement block number. Used for modifying genesis config via CLI flag.
OverrideECBP1100Deactivate *uint64 `toml:",omitempty"`

Expand Down
10 changes: 5 additions & 5 deletions eth/ethconfig/gen_config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 82ebc79

Please sign in to comment.