From 9f4b59d56a786a784b85a1dc49b584aa25156c03 Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Mon, 31 Mar 2025 17:43:18 +0200 Subject: [PATCH] beacon/engine: don't compute cell proofs in miner --- beacon/engine/types.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/beacon/engine/types.go b/beacon/engine/types.go index 8825b9c153..034aaef5ac 100644 --- a/beacon/engine/types.go +++ b/beacon/engine/types.go @@ -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[:])) } }