Skip to content

Commit

Permalink
deep source
Browse files Browse the repository at this point in the history
  • Loading branch information
kasey committed May 10, 2024
1 parent 8b9baec commit 4bde397
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion beacon-chain/execution/engine_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ type ForkchoiceUpdatedResponse struct {
ValidationError string `json:"validationError"`
}

// ExecutionPayloadReconstructor defines a service that can reconstruct a full beacon
// PayloadReconstructor defines a service that can reconstruct a full beacon
// block with an execution payload from a signed beacon block and a connection
// to an execution client's engine API.
type PayloadReconstructor interface {
Expand Down
3 changes: 2 additions & 1 deletion proto/engine/v1/json_marshal_unmarshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (v BlsPubkey) Bytes() []byte {
// BlsSig represents a 96 byte BLS signature.
type BlsSig [BlsSignLen]byte

// BlsSig returns the hex representation of a BlsSig.
// MarshalText returns the hex representation of a BlsSig.
func (v BlsSig) MarshalText() ([]byte, error) {
return hexutil.Bytes(v[:]).MarshalText()
}
Expand Down Expand Up @@ -378,6 +378,7 @@ type ExecutionPayloadDenebJSON struct {
Withdrawals []*Withdrawal `json:"withdrawals"`
}

// ExecutionPayloadElectraJSON represents the engine API ExecutionPayloadV4 type.
type ExecutionPayloadElectraJSON struct {
ParentHash *common.Hash `json:"parentHash"`
FeeRecipient *common.Address `json:"feeRecipient"`
Expand Down
4 changes: 2 additions & 2 deletions proto/engine/v1/json_marshal_unmarshal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func TestJsonMarshalUnmarshal(t *testing.T) {
ts := hexutil.Uint64(4)

resp := &enginev1.GetPayloadV2ResponseJson{
BlockValue: fmt.Sprint("0x123"),
BlockValue: "0x123",
ExecutionPayload: &enginev1.ExecutionPayloadCapellaJSON{
ParentHash: &parentHash,
FeeRecipient: &feeRecipient,
Expand Down Expand Up @@ -204,7 +204,7 @@ func TestJsonMarshalUnmarshal(t *testing.T) {
Proofs: []hexutil.Bytes{{'e'}, {'f'}, {'g'}, {'h'}},
Blobs: []hexutil.Bytes{{'i'}, {'j'}, {'k'}, {'l'}},
},
BlockValue: fmt.Sprint("0x123"),
BlockValue: "0x123",
ExecutionPayload: &enginev1.ExecutionPayloadDenebJSON{
ParentHash: &parentHash,
FeeRecipient: &feeRecipient,
Expand Down

0 comments on commit 4bde397

Please sign in to comment.