beacon/engine: rename cellProof

This commit is contained in:
Marius van der Wijden 2025-04-04 23:05:13 +02:00 committed by MariusVanDerWijden
parent 41b0321f7d
commit d422284b67
2 changed files with 6 additions and 8 deletions

View file

@ -116,7 +116,6 @@ type BlobsBundleV1 struct {
Commitments []hexutil.Bytes `json:"commitments"`
Proofs []hexutil.Bytes `json:"proofs"`
Blobs []hexutil.Bytes `json:"blobs"`
CellProofs []hexutil.Bytes `json:"cellProofs"`
}
type BlobAndProofV1 struct {
@ -332,15 +331,17 @@ func BlockToExecutableData(block *types.Block, fees *big.Int, sidecars []*types.
Commitments: make([]hexutil.Bytes, 0),
Blobs: make([]hexutil.Bytes, 0),
Proofs: make([]hexutil.Bytes, 0),
CellProofs: make([]hexutil.Bytes, 0),
}
for _, sidecar := range sidecars {
for j := range sidecar.Blobs {
bundle.Blobs = append(bundle.Blobs, hexutil.Bytes(sidecar.Blobs[j][:]))
bundle.Commitments = append(bundle.Commitments, hexutil.Bytes(sidecar.Commitments[j][:]))
if len(sidecar.Proofs[j]) != 0 {
bundle.Proofs = append(bundle.Proofs, hexutil.Bytes(sidecar.Proofs[j][:]))
} else {
for _, proof := range sidecar.CellProofs[j] {
bundle.CellProofs = append(bundle.CellProofs, hexutil.Bytes(proof[:]))
bundle.Proofs = append(bundle.Proofs, hexutil.Bytes(proof[:]))
}
}
}
}

View file

@ -517,7 +517,6 @@ func (api *ConsensusAPI) GetPayloadV3(payloadID engine.PayloadID) (*engine.Execu
if err != nil {
return nil, err
}
envelope.BlobsBundle.CellProofs = nil
return envelope, nil
}
@ -530,7 +529,6 @@ func (api *ConsensusAPI) GetPayloadV4(payloadID engine.PayloadID) (*engine.Execu
if err != nil {
return nil, err
}
envelope.BlobsBundle.CellProofs = nil
return envelope, nil
}
@ -543,7 +541,6 @@ func (api *ConsensusAPI) GetPayloadV5(payloadID engine.PayloadID) (*engine.Execu
if err != nil {
return nil, err
}
envelope.BlobsBundle.Proofs = nil
return envelope, nil
}