From 75859d481ce0d948164d9e0b1290f513fff2590b Mon Sep 17 00:00:00 2001 From: nisdas Date: Thu, 13 Apr 2023 09:21:23 +0800 Subject: [PATCH] add agent string --- api/client/builder/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/client/builder/client.go b/api/client/builder/client.go index 223003c00817..67d9a93eed57 100644 --- a/api/client/builder/client.go +++ b/api/client/builder/client.go @@ -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)