mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 03:10:48 +00:00
core/txpool: proof length verification in velidateCellsOsaka
This commit is contained in:
parent
41e966c2b5
commit
0e1160c1c8
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue