From 344d59c216bf3accdf7b1a2e9c926334ad008370 Mon Sep 17 00:00:00 2001 From: Roshan Date: Sun, 28 Apr 2024 13:08:17 +0800 Subject: [PATCH] fix: typo in `BundlePool.AllBundles` --- core/txpool/bundlepool/bundlepool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {