Skip to content

Commit d746c62

Browse files
core/txpool: fix mining bug
1 parent 9a11835 commit d746c62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/txpool/validation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func validateBlobSidecarOsaka(hashes []common.Hash, sidecar *types.BlobTxSidecar
202202
if len(sidecar.Blobs) != len(hashes) {
203203
return fmt.Errorf("invalid number of %d blobs compared to %d blob hashes", len(sidecar.Blobs), len(hashes))
204204
}
205-
if len(sidecar.Proofs)*kzg4844.CellProofsPerBlob != len(hashes) {
205+
if len(sidecar.Proofs) != len(hashes)*kzg4844.CellProofsPerBlob {
206206
return fmt.Errorf("invalid number of %d blob proofs compared to %d blob hashes", len(sidecar.Proofs), len(hashes))
207207
}
208208
if err := sidecar.ValidateBlobCommitmentHashes(hashes); err != nil {

0 commit comments

Comments
 (0)