Skip to content

Commit

Permalink
add agent string
Browse files Browse the repository at this point in the history
  • Loading branch information
nisdas committed Apr 13, 2023
1 parent 30cf854 commit 75859d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/client/builder/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ func (c *Client) SubmitBlindedBlock(ctx context.Context, sb interfaces.ReadOnlyS
defer cancel()
versionOpt := func(r *http.Request) {
r.Header.Add("Eth-Consensus-Version", version.String(version.Capella))
r.Header.Add("User-Agent", version.BuildData())
}
rb, err := c.do(ctx, http.MethodPost, postBlindedBeaconBlockPath, bytes.NewBuffer(body), versionOpt)

Expand Down

0 comments on commit 75859d4

Please sign in to comment.