From 0e1160c1c888c4ba25831fd1fe8a5679ae59dfc7 Mon Sep 17 00:00:00 2001 From: healthykim Date: Mon, 13 Jul 2026 15:39:10 +0200 Subject: [PATCH] core/txpool: proof length verification in velidateCellsOsaka --- core/txpool/validation.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/txpool/validation.go b/core/txpool/validation.go index a45f60ea78..d9d2962d18 100644 --- a/core/txpool/validation.go +++ b/core/txpool/validation.go @@ -210,6 +210,9 @@ func ValidateCells(sidecar *types.BlobTxCellSidecar) error { if blobCount != len(sidecar.Commitments) { return fmt.Errorf("invalid number of %d blobs compared to %d commitments", blobCount, len(sidecar.Commitments)) } + if len(sidecar.Proofs) != len(sidecar.Commitments)*kzg4844.CellProofsPerBlob { + return fmt.Errorf("invalid number of %d proofs compared to %d commitments", len(sidecar.Proofs), len(sidecar.Commitments)) + } if sidecar.Version != types.BlobSidecarVersion1 { return fmt.Errorf("unexpected sidecar version, want: %d, got: %d", types.BlobSidecarVersion1, sidecar.Version) }