Skip to content

Commit

Permalink
fix: nil map in bundlepool
Browse files Browse the repository at this point in the history
  • Loading branch information
irrun committed Dec 19, 2024
1 parent 3092023 commit 5e4c5b8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/txpool/bundlepool/bundlepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ func New(config Config, chain BlockChain) *BundlePool {
config = (&config).sanitize()

pool := &BundlePool{
config: config,
bundles: make(map[common.Hash]*types.Bundle),
bundleHeap: make(BundleHeap, 0),
blockchain: chain,
config: config,
bundles: make(map[common.Hash]*types.Bundle),
bundleHeap: make(BundleHeap, 0),
blockchain: chain,
bundleMetrics: make(map[int64][][]common.Hash),
}

go pool.clearLoop()
Expand Down

0 comments on commit 5e4c5b8

Please sign in to comment.