Skip to content

Commit 930f084

Browse files
Bump github.com/attestantio/go-builder-client from 0.3.0 to 0.4.2 (#559)
* Bump github.com/attestantio/go-builder-client from 0.3.0 to 0.4.2 Bumps [github.com/attestantio/go-builder-client](https://github.com/attestantio/go-builder-client) from 0.3.0 to 0.4.2. - [Commits](attestantio/go-builder-client@v0.3.0...v0.4.2) --- updated-dependencies: - dependency-name: github.com/attestantio/go-builder-client dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * fix lint --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: shana <[email protected]>
1 parent 3710710 commit 930f084

File tree

5 files changed

+24
-33
lines changed

5 files changed

+24
-33
lines changed

common/types.go

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -517,23 +517,20 @@ func (b *BuilderSubmitBlockRequest) HasExecutionPayload() bool {
517517

518518
func (b *BuilderSubmitBlockRequest) ExecutionPayloadResponse() (*GetPayloadResponse, error) {
519519
if b.Bellatrix != nil {
520-
return &GetPayloadResponse{
520+
return &GetPayloadResponse{ //nolint:exhaustruct
521521
Bellatrix: &boostTypes.GetPayloadResponse{
522522
Version: boostTypes.VersionString(consensusspec.DataVersionBellatrix.String()),
523523
Data: b.Bellatrix.ExecutionPayload,
524524
},
525-
Capella: nil,
526525
}, nil
527526
}
528527

529528
if b.Capella != nil {
530-
return &GetPayloadResponse{
531-
Capella: &api.VersionedExecutionPayload{
532-
Version: consensusspec.DataVersionCapella,
533-
Capella: b.Capella.ExecutionPayload,
534-
Bellatrix: nil,
529+
return &GetPayloadResponse{ //nolint:exhaustruct
530+
Capella: &api.VersionedExecutionPayload{ //nolint:exhaustruct
531+
Version: consensusspec.DataVersionCapella,
532+
Capella: b.Capella.ExecutionPayload,
535533
},
536-
Bellatrix: nil,
537534
}, nil
538535
}
539536

common/types_spec.go

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,11 @@ func BuildGetHeaderResponse(payload *BuilderSubmitBlockRequest, sk *bls.SecretKe
5959
if err != nil {
6060
return nil, err
6161
}
62-
return &GetHeaderResponse{
63-
Capella: &spec.VersionedSignedBuilderBid{
64-
Version: consensusspec.DataVersionCapella,
65-
Capella: signedBuilderBid,
66-
Bellatrix: nil,
62+
return &GetHeaderResponse{ //nolint:exhaustruct
63+
Capella: &spec.VersionedSignedBuilderBid{ //nolint:exhaustruct
64+
Version: consensusspec.DataVersionCapella,
65+
Capella: signedBuilderBid,
6766
},
68-
Bellatrix: nil,
6967
}, nil
7068
}
7169
return nil, ErrEmptyPayload
@@ -83,13 +81,11 @@ func BuildGetPayloadResponse(payload *BuilderSubmitBlockRequest) (*GetPayloadRes
8381
}
8482

8583
if payload.Capella != nil {
86-
return &GetPayloadResponse{
87-
Capella: &api.VersionedExecutionPayload{
88-
Version: consensusspec.DataVersionCapella,
89-
Capella: payload.Capella.ExecutionPayload,
90-
Bellatrix: nil,
84+
return &GetPayloadResponse{ //nolint:exhaustruct
85+
Capella: &api.VersionedExecutionPayload{ //nolint:exhaustruct
86+
Version: consensusspec.DataVersionCapella,
87+
Capella: payload.Capella.ExecutionPayload,
9188
},
92-
Bellatrix: nil,
9389
}, nil
9490
}
9591

database/typesconv.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,12 @@ func ExecutionPayloadEntryToExecutionPayload(executionPayloadEntry *ExecutionPay
9393
if err != nil {
9494
return nil, err
9595
}
96-
capella := api.VersionedExecutionPayload{
97-
Version: consensusspec.DataVersionCapella,
98-
Capella: executionPayload,
99-
Bellatrix: nil,
96+
capella := api.VersionedExecutionPayload{ //nolint:exhaustruct
97+
Version: consensusspec.DataVersionCapella,
98+
Capella: executionPayload,
10099
}
101-
return &common.VersionedExecutionPayload{
102-
Capella: &capella,
103-
Bellatrix: nil,
100+
return &common.VersionedExecutionPayload{ //nolint:exhaustruct
101+
Capella: &capella,
104102
}, nil
105103
} else if payloadVersion == common.ForkVersionStringBellatrix {
106104
executionPayload := new(types.ExecutionPayload)

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.20
55
require (
66
github.com/NYTimes/gziphandler v1.1.1
77
github.com/alicebob/miniredis/v2 v2.31.0
8-
github.com/attestantio/go-builder-client v0.3.0
8+
github.com/attestantio/go-builder-client v0.4.2
99
github.com/attestantio/go-eth2-client v0.19.9
1010
github.com/bradfitz/gomemcache v0.0.0-20230124162541-5f7a7d875746
1111
github.com/btcsuite/btcd/btcutil v1.1.2
@@ -45,7 +45,7 @@ require (
4545
github.com/fatih/color v1.16.0 // indirect
4646
github.com/getsentry/sentry-go v0.18.0 // indirect
4747
github.com/go-gorp/gorp/v3 v3.1.0 // indirect
48-
github.com/goccy/go-yaml v1.11.0 // indirect
48+
github.com/goccy/go-yaml v1.11.2 // indirect
4949
github.com/gofrs/flock v0.8.1 // indirect
5050
github.com/gogo/protobuf v1.3.2 // indirect
5151
github.com/golang/protobuf v1.5.3 // indirect

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ github.com/alicebob/miniredis/v2 v2.31.0/go.mod h1:UB/T2Uztp7MlFSDakaX1sTXUv5CAS
2323
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah4HI848JfFxHt+iPb26b4zyfspmqY0/8=
2424
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
2525
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
26-
github.com/attestantio/go-builder-client v0.3.0 h1:NY7pUNT070T3tx/N8hCaO5KpExvaVQhH//9zsgRh43M=
27-
github.com/attestantio/go-builder-client v0.3.0/go.mod h1:DwesMTOqnCp4u+n3uZ+fWL8wwnSBZVD9VMIVPDR+AZE=
26+
github.com/attestantio/go-builder-client v0.4.2 h1:EycfAFqQV+ooc2z6hmTsbuH4TCLknr0aO0nHLHLMpJM=
27+
github.com/attestantio/go-builder-client v0.4.2/go.mod h1:e02i/WO4fjs3/u9oIZEjiC8CK1Qyxy4cpiMMGKx4VqQ=
2828
github.com/attestantio/go-eth2-client v0.19.9 h1:g5LLX3X7cLC0KS0oai/MtxBOZz3U3QPIX5qryYMxgVE=
2929
github.com/attestantio/go-eth2-client v0.19.9/go.mod h1:TTz7YF6w4z6ahvxKiHuGPn6DbQn7gH6HPuWm/DEQeGE=
3030
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=
@@ -162,8 +162,8 @@ github.com/gobuffalo/packr/v2 v2.8.3 h1:xE1yzvnO56cUC0sTpKR3DIbxZgB54AftTFMhB2XE
162162
github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo=
163163
github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw=
164164
github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM=
165-
github.com/goccy/go-yaml v1.11.0 h1:n7Z+zx8S9f9KgzG6KtQKf+kwqXZlLNR2F6018Dgau54=
166-
github.com/goccy/go-yaml v1.11.0/go.mod h1:H+mJrWtjPTJAHvRbV09MCK9xYwODM+wRTVFFTWckfng=
165+
github.com/goccy/go-yaml v1.11.2 h1:joq77SxuyIs9zzxEjgyLBugMQ9NEgTWxXfz2wVqwAaQ=
166+
github.com/goccy/go-yaml v1.11.2/go.mod h1:wKnAMd44+9JAAnGQpWVEgBzGt3YuTaQ4uXoHvE4m7WU=
167167
github.com/gofrs/flock v0.8.1 h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw=
168168
github.com/gofrs/flock v0.8.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU=
169169
github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s=

0 commit comments

Comments
 (0)