diff --git a/core/txpool/blobpool/blobpool.go b/core/txpool/blobpool/blobpool.go index b20d50a3e6..da54952674 100644 --- a/core/txpool/blobpool/blobpool.go +++ b/core/txpool/blobpool/blobpool.go @@ -1698,15 +1698,11 @@ func (p *BlobPool) GetBlobs(vhashes []common.Hash, version byte) ([]*kzg4844.Blo // AvailableBlobs returns whether the blobs are available in the subpool. func (p *BlobPool) AvailableBlobs(vhashes []common.Hash) []bool { available := make([]bool, len(vhashes)) + p.lock.RLock() for i, vhash := range vhashes { - // Retrieve the datastore item (in a short lock) - p.lock.RLock() - _, exists := p.lookup.storeidOfBlob(vhash) - p.lock.RUnlock() - if exists { - available[i] = true - } + _, available[i] = p.lookup.storeidOfBlob(vhash) } + p.lock.RUnlock() return available }