Skip to content

Commit

Permalink
core/blobpool: implement txpool for blob txs
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed Jun 16, 2023
1 parent d40a255 commit 90db3e3
Show file tree
Hide file tree
Showing 18 changed files with 3,663 additions and 13 deletions.
3 changes: 3 additions & 0 deletions cmd/geth/main.go
Expand Up @@ -77,6 +77,9 @@ var (
utils.TxPoolAccountQueueFlag,
utils.TxPoolGlobalQueueFlag,
utils.TxPoolLifetimeFlag,
utils.BlobPoolDataDirFlag,
utils.BlobPoolDataCapFlag,
utils.BlobPoolPriceBumpFlag,
utils.SyncModeFlag,
utils.SyncTargetFlag,
utils.ExitWhenSyncedFlag,
Expand Down
19 changes: 19 additions & 0 deletions cmd/utils/flags.go
Expand Up @@ -385,6 +385,25 @@ var (
Value: ethconfig.Defaults.TxPool.Lifetime,
Category: flags.TxPoolCategory,
}
// Blob transaction pool settings
BlobPoolDataDirFlag = &cli.StringFlag{
Name: "blobpool.datadir",
Usage: "Data directory to store blob transactions in",
Value: ethconfig.Defaults.BlobPool.Datadir,
Category: flags.BlobPoolCategory,
}
BlobPoolDataCapFlag = &cli.Uint64Flag{
Name: "blobpool.datacap",
Usage: "Disk space to allocate for pending blob transactions (soft limit)",
Value: ethconfig.Defaults.BlobPool.Datacap,
Category: flags.BlobPoolCategory,
}
BlobPoolPriceBumpFlag = &cli.Uint64Flag{
Name: "blobpool.pricebump",
Usage: "Price bump percentage to replace an already existing blob transaction",
Value: ethconfig.Defaults.BlobPool.PriceBump,
Category: flags.BlobPoolCategory,
}
// Performance tuning settings
CacheFlag = &cli.IntFlag{
Name: "cache",
Expand Down
1,386 changes: 1,386 additions & 0 deletions core/txpool/blobpool/blobpool.go

Large diffs are not rendered by default.

0 comments on commit 90db3e3

Please sign in to comment.