Skip to content

Commit

Permalink
fix: nil map in bundlepool (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
irrun authored Dec 24, 2024
1 parent 3092023 commit ad4b66d
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 ad4b66d

Please sign in to comment.