mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-08 07:58:40 +00:00
core/txpool/blobpool: fix GetBlobs mark blob hash filled before checking sidecar version
This commit is contained in:
parent
f0b21fa110
commit
aa90166c38
1 changed files with 2 additions and 2 deletions
|
|
@ -1502,13 +1502,13 @@ func (p *BlobPool) GetBlobs(vhashes []common.Hash, version byte) ([]*kzg4844.Blo
|
|||
if !ok {
|
||||
continue // non-interesting blob
|
||||
}
|
||||
// Mark hash as seen.
|
||||
filled[hash] = struct{}{}
|
||||
if sidecar.Version != version {
|
||||
// Skip blobs with incompatible version. Note we still track the blob hash
|
||||
// in `filled` here, ensuring that we do not resolve this tx another time.
|
||||
continue
|
||||
}
|
||||
// Mark hash as seen.
|
||||
filled[hash] = struct{}{}
|
||||
// Get or convert the proof.
|
||||
var pf []kzg4844.Proof
|
||||
switch version {
|
||||
|
|
|
|||
Loading…
Reference in a new issue