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
3 changes: 3 additions & 0 deletions miner/minerconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import (
)

// Config is the configuration parameters of mining.
//
//go:generate go run github.com/fjl/gencodec -type Config -formats toml -out gen_config.go
type Config struct {
Etherbase common.Address `toml:",omitempty"` // Public address for block mining rewards
ExtraData hexutil.Bytes `toml:",omitempty"` // Block extra data set by the miner
Expand Down Expand Up @@ -67,6 +69,7 @@ type BuilderConfig struct {
URL string
}

//go:generate go run github.com/fjl/gencodec -type MevConfig -formats toml -out gen_mevconfig.go
type MevConfig struct {
Enabled bool // Whether to enable Mev or not
GreedyMergeTx bool // Whether to merge local transactions to the bid
Expand Down
96 changes: 96 additions & 0 deletions miner/minerconfig/gen_config.go

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

80 changes: 80 additions & 0 deletions miner/minerconfig/gen_mevconfig.go

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