beacon/engine: don't compute cell proofs in miner

This commit is contained in:
Marius van der Wijden 2025-03-31 17:43:18 +02:00 committed by MariusVanDerWijden
parent 8b7e1f058c
commit 41b0321f7d

View file

@ -24,7 +24,6 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto/kzg4844"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/trie"
)
@ -340,11 +339,7 @@ func BlockToExecutableData(block *types.Block, fees *big.Int, sidecars []*types.
bundle.Blobs = append(bundle.Blobs, hexutil.Bytes(sidecar.Blobs[j][:]))
bundle.Commitments = append(bundle.Commitments, hexutil.Bytes(sidecar.Commitments[j][:]))
bundle.Proofs = append(bundle.Proofs, hexutil.Bytes(sidecar.Proofs[j][:]))
cellProofs, err := kzg4844.ComputeCells(&sidecar.Blobs[j])
if err != nil {
panic(err)
}
for _, proof := range cellProofs {
for _, proof := range sidecar.CellProofs[j] {
bundle.CellProofs = append(bundle.CellProofs, hexutil.Bytes(proof[:]))
}
}