mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 22:56:43 +00:00
core/txpool/blobpool: add read lock
This commit is contained in:
parent
2a341854c7
commit
d39b80e5c9
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue