Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Wazzymandias committed Aug 1, 2023
1 parent 893d4c8 commit 85e759f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 3 additions & 4 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,6 @@ var (
MinerBlocklistFileFlag = &cli.StringFlag{
Name: "miner.blocklist",
Usage: "[NOTE: Deprecated, please use builder.blacklist] flashbots - Path to JSON file with list of blocked addresses. Miner will ignore txs that touch mentioned addresses.",
Value: "",
Category: flags.MinerCategory,
}
MinerNewPayloadTimeout = &cli.DurationFlag{
Expand Down Expand Up @@ -705,7 +704,6 @@ var (
BuilderAlgoTypeFlag = &cli.StringFlag{
Name: "builder.algotype",
Usage: "Block building algorithm to use [=mev-geth] (mev-geth, greedy, greedy-buckets)",
Value: "mev-geth",
Category: flags.BuilderCategory,
}

Expand Down Expand Up @@ -734,7 +732,6 @@ var (
Usage: "Path to file containing blacklisted addresses, json-encoded list of strings. " +
"Builder will ignore transactions that touch mentioned addresses. This flag is also used for block validation API.\n" +
"NOTE: builder.validation_blacklist is deprecated and will be removed in the future in favor of builder.blacklist",
Value: "",
Aliases: []string{"builder.validation_blacklist"},
Category: flags.BuilderCategory,
}
Expand Down Expand Up @@ -1676,7 +1673,9 @@ func SetP2PConfig(ctx *cli.Context, cfg *p2p.Config) {

// SetBuilderConfig applies node-related command line flags to the builder config.
func SetBuilderConfig(ctx *cli.Context, cfg *builder.Config) {
cfg.Enabled = ctx.IsSet(BuilderEnabled.Name)
if ctx.IsSet(BuilderEnabled.Name) {
cfg.Enabled = ctx.Bool(BuilderEnabled.Name)
}
cfg.EnableValidatorChecks = ctx.IsSet(BuilderEnableValidatorChecks.Name)
cfg.EnableLocalRelay = ctx.IsSet(BuilderEnableLocalRelay.Name)
cfg.SlotsInEpoch = ctx.Uint64(BuilderSlotsInEpoch.Name)
Expand Down
5 changes: 4 additions & 1 deletion eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,10 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
}

eth.miner = miner.New(eth, &config.Miner, eth.blockchain.Config(), eth.EventMux(), eth.engine, eth.isLocalBlock)
eth.miner.SetExtra(makeExtraData(config.Miner.ExtraData))
err = eth.miner.SetExtra(makeExtraData(config.Miner.ExtraData))
if err != nil {
return nil, err
}

eth.APIBackend = &EthAPIBackend{stack.Config().ExtRPCEnabled(), stack.Config().AllowUnprotectedTxs, eth, nil}
if eth.APIBackend.allowUnprotectedTxs {
Expand Down

0 comments on commit 85e759f

Please sign in to comment.