Skip to content
Closed
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
106 changes: 106 additions & 0 deletions core/txpool/legacypool/gen_config.go

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

6 changes: 5 additions & 1 deletion core/txpool/legacypool/legacypool.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ type BlockChain interface {
}

// Config are the configuration parameters of the transaction pool.
//
//go:generate go run github.com/fjl/gencodec -type Config -formats toml -out gen_config.go
type Config struct {
Locals []common.Address // Addresses that should be treated by default as local
NoLocals bool // Whether local transaction handling should be disabled
Expand All @@ -161,11 +163,13 @@ type Config struct {
}

// DefaultConfig contains the default configurations for the transaction pool.
//
//go:generate go run github.com/fjl/gencodec -type Config -formats toml -out gen_config.go
var DefaultConfig = Config{
Journal: "transactions.rlp",
Rejournal: time.Hour,

PriceLimit: 1,
PriceLimit: 1000000000, // by default 1 gwei
PriceBump: 10,

AccountSlots: 16,
Expand Down
1 change: 1 addition & 0 deletions eth/gasprice/gasprice.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ var (
DefaultIgnorePrice = big.NewInt(4 * params.Wei)
)

//go:generate go run github.com/fjl/gencodec -type Config -formats toml -out gen_config.go
type Config struct {
Blocks int
Percentile int
Expand Down
68 changes: 68 additions & 0 deletions eth/gasprice/gen_config.go

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

Loading