Skip to content

Commit 88ae2dd

Browse files
remove artifacts
1 parent 05e5e7f commit 88ae2dd

File tree

3 files changed

+2
-72
lines changed

3 files changed

+2
-72
lines changed

beacon/engine/types.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"github.com/ethereum/go-ethereum/common"
2525
"github.com/ethereum/go-ethereum/common/hexutil"
2626
"github.com/ethereum/go-ethereum/core/types"
27-
"github.com/ethereum/go-ethereum/crypto/kzg4844"
2827
"github.com/ethereum/go-ethereum/params"
2928
"github.com/ethereum/go-ethereum/trie"
3029
)
@@ -117,19 +116,13 @@ type BlobsBundleV1 struct {
117116
Commitments []hexutil.Bytes `json:"commitments"`
118117
Proofs []hexutil.Bytes `json:"proofs"`
119118
Blobs []hexutil.Bytes `json:"blobs"`
120-
CellProofs []hexutil.Bytes `json:"cell_proofs"`
121119
}
122120

123121
type BlobAndProofV1 struct {
124122
Blob hexutil.Bytes `json:"blob"`
125123
Proof hexutil.Bytes `json:"proof"`
126124
}
127125

128-
type BlobAndProofV2 struct {
129-
Blob hexutil.Bytes `json:"blob"`
130-
CellProofs []hexutil.Bytes `json:"cell_proofs"`
131-
}
132-
133126
// JSON type overrides for ExecutionPayloadEnvelope.
134127
type executionPayloadEnvelopeMarshaling struct {
135128
BlockValue *hexutil.Big
@@ -333,20 +326,12 @@ func BlockToExecutableData(block *types.Block, fees *big.Int, sidecars []*types.
333326
Commitments: make([]hexutil.Bytes, 0),
334327
Blobs: make([]hexutil.Bytes, 0),
335328
Proofs: make([]hexutil.Bytes, 0),
336-
CellProofs: make([]hexutil.Bytes, 0),
337329
}
338330
for _, sidecar := range sidecars {
339331
for j := range sidecar.Blobs {
340332
bundle.Blobs = append(bundle.Blobs, hexutil.Bytes(sidecar.Blobs[j][:]))
341333
bundle.Commitments = append(bundle.Commitments, hexutil.Bytes(sidecar.Commitments[j][:]))
342334
bundle.Proofs = append(bundle.Proofs, hexutil.Bytes(sidecar.Proofs[j][:]))
343-
cellProofs, err := kzg4844.ComputeCells(&sidecar.Blobs[j])
344-
if err != nil {
345-
panic(err)
346-
}
347-
for _, proof := range cellProofs {
348-
bundle.CellProofs = append(bundle.CellProofs, hexutil.Bytes(proof[:]))
349-
}
350335
}
351336
}
352337

crypto/kzg4844/kzg4844.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,6 @@ type Claim [32]byte
8484
// useCKZG controls whether the cryptography should use the Go or C backend.
8585
var useCKZG atomic.Bool
8686

87-
func init() {
88-
UseCKZG(true)
89-
}
90-
9187
// UseCKZG can be called to switch the default Go implementation of KZG to the C
9288
// library if for some reason the user wishes to do so (e.g. consensus bug in one
9389
// or the other).

eth/catalyst/api.go

Lines changed: 2 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import (
3232
"github.com/ethereum/go-ethereum/core/stateless"
3333
"github.com/ethereum/go-ethereum/core/types"
3434
"github.com/ethereum/go-ethereum/core/vm"
35-
"github.com/ethereum/go-ethereum/crypto/kzg4844"
3635
"github.com/ethereum/go-ethereum/eth"
3736
"github.com/ethereum/go-ethereum/eth/ethconfig"
3837
"github.com/ethereum/go-ethereum/internal/version"
@@ -509,38 +508,15 @@ func (api *ConsensusAPI) GetPayloadV3(payloadID engine.PayloadID) (*engine.Execu
509508
if !payloadID.Is(engine.PayloadV3) {
510509
return nil, engine.UnsupportedFork
511510
}
512-
envelope, err := api.getPayload(payloadID, false)
513-
if err != nil {
514-
return nil, err
515-
}
516-
envelope.BlobsBundle.CellProofs = nil
517-
return envelope, nil
511+
return api.getPayload(payloadID, false)
518512
}
519513

520514
// GetPayloadV4 returns a cached payload by id.
521515
func (api *ConsensusAPI) GetPayloadV4(payloadID engine.PayloadID) (*engine.ExecutionPayloadEnvelope, error) {
522516
if !payloadID.Is(engine.PayloadV3) {
523517
return nil, engine.UnsupportedFork
524518
}
525-
envelope, err := api.getPayload(payloadID, false)
526-
if err != nil {
527-
return nil, err
528-
}
529-
envelope.BlobsBundle.CellProofs = nil
530-
return envelope, nil
531-
}
532-
533-
// GetPayloadV4 returns a cached payload by id.
534-
func (api *ConsensusAPI) GetPayloadV5(payloadID engine.PayloadID) (*engine.ExecutionPayloadEnvelope, error) {
535-
if !payloadID.Is(engine.PayloadV3) {
536-
return nil, engine.UnsupportedFork
537-
}
538-
envelope, err := api.getPayload(payloadID, false)
539-
if err != nil {
540-
return nil, err
541-
}
542-
envelope.BlobsBundle.Proofs = nil
543-
return envelope, nil
519+
return api.getPayload(payloadID, false)
544520
}
545521

546522
func (api *ConsensusAPI) getPayload(payloadID engine.PayloadID, full bool) (*engine.ExecutionPayloadEnvelope, error) {
@@ -571,33 +547,6 @@ func (api *ConsensusAPI) GetBlobsV1(hashes []common.Hash) ([]*engine.BlobAndProo
571547
return res, nil
572548
}
573549

574-
// GetBlobsV2 returns a blob from the transaction pool.
575-
func (api *ConsensusAPI) GetBlobsV2(hashes []common.Hash) ([]*engine.BlobAndProofV2, error) {
576-
if len(hashes) > 128 {
577-
return nil, engine.TooLargeRequest.With(fmt.Errorf("requested blob count too large: %v", len(hashes)))
578-
}
579-
res := make([]*engine.BlobAndProofV2, len(hashes))
580-
581-
blobs, _ := api.eth.TxPool().GetBlobs(hashes)
582-
for i := 0; i < len(blobs); i++ {
583-
if blobs[i] != nil {
584-
cellProofs, err := kzg4844.ComputeCells(blobs[i])
585-
if err != nil {
586-
return nil, err
587-
}
588-
var proofs []hexutil.Bytes
589-
for _, proof := range cellProofs {
590-
proofs = append(proofs, hexutil.Bytes(proof[:]))
591-
}
592-
res[i] = &engine.BlobAndProofV2{
593-
Blob: (*blobs[i])[:],
594-
CellProofs: proofs,
595-
}
596-
}
597-
}
598-
return res, nil
599-
}
600-
601550
// NewPayloadV1 creates an Eth1 block, inserts it in the chain, and returns the status of the chain.
602551
func (api *ConsensusAPI) NewPayloadV1(params engine.ExecutableData) (engine.PayloadStatusV1, error) {
603552
if params.Withdrawals != nil {

0 commit comments

Comments
 (0)