core/txpool: fix mining bug

This commit is contained in:
Marius van der Wijden 2025-04-08 15:52:34 +02:00 committed by MariusVanDerWijden
parent 0a6e0a1cb3
commit fb73b241b2

View file

@ -202,7 +202,7 @@ func validateBlobSidecarOsaka(hashes []common.Hash, sidecar *types.BlobTxSidecar
if len(sidecar.Blobs) != len(hashes) {
return fmt.Errorf("invalid number of %d blobs compared to %d blob hashes", len(sidecar.Blobs), len(hashes))
}
if len(sidecar.Proofs)*kzg4844.CellProofsPerBlob != len(hashes) {
if len(sidecar.Proofs) != len(hashes)*kzg4844.CellProofsPerBlob {
return fmt.Errorf("invalid number of %d blob proofs compared to %d blob hashes", len(sidecar.Proofs), len(hashes))
}
if err := sidecar.ValidateBlobCommitmentHashes(hashes); err != nil {