mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
internal/ethapi: comment
This commit is contained in:
parent
38d1d128d9
commit
b4bf2ae708
1 changed files with 2 additions and 0 deletions
|
|
@ -307,6 +307,8 @@ func (args *TransactionArgs) setBlobTxSidecar(ctx context.Context, config sideca
|
||||||
return fmt.Errorf("number of blobs and commitments mismatch (have=%d, want=%d)", len(args.Commitments), n)
|
return fmt.Errorf("number of blobs and commitments mismatch (have=%d, want=%d)", len(args.Commitments), n)
|
||||||
}
|
}
|
||||||
proofLen := n
|
proofLen := n
|
||||||
|
// if V0: len(blobs) == len(proofs)
|
||||||
|
// if V1: len(blobs) == len(proofs) * 128
|
||||||
if config.blobSidecarVersion == types.BlobSidecarVersion1 {
|
if config.blobSidecarVersion == types.BlobSidecarVersion1 {
|
||||||
proofLen = n * kzg4844.CellProofsPerBlob
|
proofLen = n * kzg4844.CellProofsPerBlob
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue