This commit is contained in:
maskpp 2025-07-11 13:59:56 +08:00 committed by Gary Rong
parent 6197090752
commit bae22cc593

View file

@ -1330,11 +1330,11 @@ func (p *BlobPool) GetBlobs(vhashes []common.Hash) []*types.BlobTxSidecar {
// If multi blobs in the same transaction, fill the other sidecars. // If multi blobs in the same transaction, fill the other sidecars.
hashes := item.BlobHashes() hashes := item.BlobHashes()
for i, vHash := range hashes { for i, vHash := range vhashes {
if sidecars[idx] != nil { if sidecars[i] != nil {
continue continue
} }
if index := slices.Index(hashes, vHash); index != -1 { if slices.Index(hashes, vHash) != -1 {
sidecars[i] = item.BlobTxSidecar() sidecars[i] = item.BlobTxSidecar()
} }
} }