Add RO blob sidecar (#13144)

This commit is contained in:
Terence
2023-11-01 10:03:49 -07:00
committed by GitHub
parent a54e61ecb0
commit 57eda1de63
66 changed files with 1420 additions and 1001 deletions

View File

@@ -36,7 +36,7 @@ func TestVerifyBlobKZGProofBatch(t *testing.T) {
require.NoError(t, err)
test := &KZGTestData{}
require.NoError(t, yaml.Unmarshal(file, test))
var sidecars []*ethpb.BlobSidecar
var sidecars []*ethpb.DeprecatedBlobSidecar
blobs := test.Input.Blobs
commitments := test.Input.Commitments
proofs := test.Input.Proofs
@@ -52,7 +52,7 @@ func TestVerifyBlobKZGProofBatch(t *testing.T) {
require.NoError(t, err)
proofBytes, err := hex.DecodeString(proofs[i][2:])
require.NoError(t, err)
sidecar := &ethpb.BlobSidecar{
sidecar := &ethpb.DeprecatedBlobSidecar{
Blob: blobBytes,
KzgProof: proofBytes,
}

View File

@@ -318,7 +318,7 @@ func runBlobStep(t *testing.T,
}
blob := [fieldparams.BlobLength]byte{}
copy(blob[:], blobsSSZ[index*fieldparams.BlobLength:])
sidecar := &ethpb.BlobSidecar{
sidecar := &ethpb.DeprecatedBlobSidecar{
BlockRoot: root[:],
Index: index,
Slot: block.Slot(),

View File

@@ -130,7 +130,7 @@ func unmarshalledSSZ(t *testing.T, serializedBytes []byte, folderName string) (i
case "BlobIdentifier":
obj = &ethpb.BlobIdentifier{}
case "BlobSidecar":
obj = &ethpb.BlobSidecar{}
obj = &ethpb.DeprecatedBlobSidecar{}
case "SignedBlobSidecar":
obj = &ethpb.SignedBlobSidecar{}
case "PowBlock":