Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
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
9 changes: 4 additions & 5 deletions txpool/txpoolcfg/txpoolcfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type Config struct {
MinFeeCap uint64
AccountSlots uint64 // Number of executable transaction slots guaranteed per account
PriceBump uint64 // Price bump percentage to replace an already existing transaction
OverrideShanghaiTime *big.Int
OverrideCancunTime *big.Int
}

var DefaultConfig = Config{
Expand All @@ -53,10 +53,9 @@ var DefaultConfig = Config{
BaseFeeSubPoolLimit: 10_000,
QueuedSubPoolLimit: 10_000,

MinFeeCap: 1,
AccountSlots: 16, //TODO: to choose right value (16 to be compatible with Geth)
PriceBump: 10, // Price bump percentage to replace an already existing transaction
OverrideShanghaiTime: nil,
MinFeeCap: 1,
AccountSlots: 16, //TODO: to choose right value (16 to be compatible with Geth)
PriceBump: 10, // Price bump percentage to replace an already existing transaction
}

type DiscardReason uint8
Expand Down
6 changes: 3 additions & 3 deletions txpool/txpooluitl/all_components.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ func AllComponents(ctx context.Context, cfg txpoolcfg.Config, cache kvcache.Cach
chainID, _ := uint256.FromBig(chainConfig.ChainID)

shanghaiTime := chainConfig.ShanghaiTime
if cfg.OverrideShanghaiTime != nil {
shanghaiTime = cfg.OverrideShanghaiTime
}
cancunTime := chainConfig.CancunTime
if cfg.OverrideCancunTime != nil {
cancunTime = cfg.OverrideCancunTime
}

txPool, err := txpool.New(newTxs, chainDB, cfg, cache, *chainID, shanghaiTime, cancunTime, logger)
if err != nil {
Expand Down