diff --git a/core/txpool/blobpool/blobpool.go b/core/txpool/blobpool/blobpool.go index 0148e78b3e..5a20c3ce5a 100644 --- a/core/txpool/blobpool/blobpool.go +++ b/core/txpool/blobpool/blobpool.go @@ -1244,6 +1244,9 @@ func (p *BlobPool) GetRLP(hash common.Hash) []byte { // The size refers the length of the 'rlp encoding' of a blob transaction // including the attached blobs. func (p *BlobPool) GetMetadata(hash common.Hash) *txpool.TxMetadata { + p.lock.RLock() + defer p.lock.RUnlock() + size, ok := p.lookup.sizeOfTx(hash) if !ok { return nil