Skip to content

Commit

Permalink
Rename fields
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Oct 10, 2023
1 parent f00405f commit 899dd64
Show file tree
Hide file tree
Showing 5 changed files with 414 additions and 415 deletions.
4 changes: 2 additions & 2 deletions pkg/cannon/deriver/beacon/eth/v1/beacon_blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (b *BeaconBlobDeriver) createEventFromBlob(ctx context.Context, blob *deneb
Data: &xatu.DecoratedEvent_EthV1BeaconBlockBlobSidecar{
EthV1BeaconBlockBlobSidecar: &xatuethv1.BlobSidecar{
Slot: &wrapperspb.UInt64Value{Value: uint64(blob.Slot)},
Data: blob.Blob[:],
Blob: blob.Blob[:],
Index: &wrapperspb.UInt64Value{Value: uint64(blob.Index)},
BlockRoot: blob.BlockRoot.String(),
BlockParentRoot: blob.BlockParentRoot.String(),
Expand All @@ -259,7 +259,7 @@ func (b *BeaconBlobDeriver) createEventFromBlob(ctx context.Context, blob *deneb

func (b *BeaconBlobDeriver) getAdditionalData(_ context.Context, blob *deneb.BlobSidecar) (*xatu.ClientMeta_AdditionalEthV1BeaconBlobSidecarData, error) {
extra := &xatu.ClientMeta_AdditionalEthV1BeaconBlobSidecarData{
DataSizeKb: &wrapperspb.UInt64Value{Value: uint64(len(blob.Blob) / 1024)},
DataSize: &wrapperspb.UInt64Value{Value: uint64(len(blob.Blob))},
}

slot := b.beacon.Metadata().Wallclock().Slots().FromNumber(uint64(blob.Slot))
Expand Down
10 changes: 5 additions & 5 deletions pkg/proto/eth/v1/blob.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/proto/eth/v1/blob.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "google/protobuf/wrappers.proto";
option go_package = "github.com/ethpandaops/xatu/pkg/proto/eth/v1";

message BlobSidecar {
bytes data = 1;
bytes blob = 1;
string kzg_commitment = 2 [ json_name = "kzg_commitment" ];
string kzg_proof = 3 [ json_name = "kzg_proof" ];
google.protobuf.UInt64Value slot = 4;
Expand Down
Loading

0 comments on commit 899dd64

Please sign in to comment.