if multi blobs in the same tx, fill the other sidecars

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

View file

@ -1328,7 +1328,7 @@ func (p *BlobPool) GetBlobs(vhashes []common.Hash) []*types.BlobTxSidecar {
} }
sidecars[idx] = item.BlobTxSidecar() sidecars[idx] = item.BlobTxSidecar()
// If multi blobs in one 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 hashes {
if sidecars[idx] != nil { if sidecars[idx] != nil {