From 5e4c5b88587f5921c495c5cd8e7f65f97bc39467 Mon Sep 17 00:00:00 2001 From: irrun Date: Thu, 19 Dec 2024 15:34:55 +0800 Subject: [PATCH] fix: nil map in bundlepool --- core/txpool/bundlepool/bundlepool.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/txpool/bundlepool/bundlepool.go b/core/txpool/bundlepool/bundlepool.go index ef14229947..6188e13186 100644 --- a/core/txpool/bundlepool/bundlepool.go +++ b/core/txpool/bundlepool/bundlepool.go @@ -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()