mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
fix bug
This commit is contained in:
parent
6197090752
commit
bae22cc593
1 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue