Skip to content

Commit

Permalink
feat(tx-pool): disable blob pool (#1081)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo authored Oct 25, 2024
1 parent 91c2f9c commit aefacd4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import (
"github.com/scroll-tech/go-ethereum/core/rawdb"
"github.com/scroll-tech/go-ethereum/core/state/pruner"
"github.com/scroll-tech/go-ethereum/core/txpool"
"github.com/scroll-tech/go-ethereum/core/txpool/blobpool"
"github.com/scroll-tech/go-ethereum/core/txpool/legacypool"
"github.com/scroll-tech/go-ethereum/core/types"
"github.com/scroll-tech/go-ethereum/core/vm"
Expand Down Expand Up @@ -231,17 +230,17 @@ func New(stack *node.Node, config *ethconfig.Config, l1Client sync_service.EthCl
}
eth.bloomIndexer.Start(eth.blockchain)

if config.BlobPool.Datadir != "" {
config.BlobPool.Datadir = stack.ResolvePath(config.BlobPool.Datadir)
}
blobPool := blobpool.New(config.BlobPool, eth.blockchain)
//if config.BlobPool.Datadir != "" {
// config.BlobPool.Datadir = stack.ResolvePath(config.BlobPool.Datadir)
//}
//blobPool := blobpool.New(config.BlobPool, eth.blockchain)

if config.TxPool.Journal != "" {
config.TxPool.Journal = stack.ResolvePath(config.TxPool.Journal)
}
legacyPool := legacypool.New(config.TxPool, eth.blockchain)

eth.txPool, err = txpool.New(new(big.Int).SetUint64(config.TxPool.PriceLimit), eth.blockchain, []txpool.SubPool{legacyPool, blobPool})
eth.txPool, err = txpool.New(new(big.Int).SetUint64(config.TxPool.PriceLimit), eth.blockchain, []txpool.SubPool{legacyPool})
if err != nil {
return nil, err
}
Expand Down

0 comments on commit aefacd4

Please sign in to comment.