mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-01 04:28:37 +00:00
skip partial blob txs during blob building
This commit is contained in:
parent
6e00052cf5
commit
64982f03ae
1 changed files with 4 additions and 0 deletions
|
|
@ -2338,6 +2338,10 @@ func (p *BlobPool) Pending(filter txpool.PendingFilter) (map[common.Address][]*t
|
||||||
break // execution gas limit is too high
|
break // execution gas limit is too high
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Skip transactions without enough cells to recover blobs
|
||||||
|
if tx.custody != nil && tx.custody.OneCount() < kzg4844.DataPerBlob {
|
||||||
|
break // not enough cells to build a full payload, discard rest of txs from the account
|
||||||
|
}
|
||||||
// Transaction was accepted according to the filter, append to the pending list
|
// Transaction was accepted according to the filter, append to the pending list
|
||||||
lazies = append(lazies, &txpool.LazyTransaction{
|
lazies = append(lazies, &txpool.LazyTransaction{
|
||||||
Pool: p,
|
Pool: p,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue