mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
check by version
This commit is contained in:
parent
d39594a7d7
commit
139d3ceed3
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ func (sc *BlobTxSidecar) BlobHashes() []common.Hash {
|
|||
|
||||
// CellProofsAt returns the cell proofs for blob with index idx.
|
||||
func (sc *BlobTxSidecar) CellProofsAt(idx int) []kzg4844.Proof {
|
||||
if len(sc.Proofs) == len(sc.Blobs)*kzg4844.CellProofsPerBlob {
|
||||
if sc.Version == 1 {
|
||||
index := idx * kzg4844.CellProofsPerBlob
|
||||
return sc.Proofs[index : index+kzg4844.CellProofsPerBlob]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue