diff --git a/core/txpool/bundlepool/bundlepool.go b/core/txpool/bundlepool/bundlepool.go index 9012e9cf2d..4ea564b552 100644 --- a/core/txpool/bundlepool/bundlepool.go +++ b/core/txpool/bundlepool/bundlepool.go @@ -191,7 +191,7 @@ func (p *BundlePool) PendingBundles(blockNumber uint64, blockTimestamp uint64) [ // AllBundles returns all the bundles currently in the pool func (p *BundlePool) AllBundles() []*types.Bundle { - p.mu.RUnlock() + p.mu.RLock() defer p.mu.RUnlock() bundles := make([]*types.Bundle, 0, len(p.bundles)) for _, bundle := range p.bundles {