Fix capella unblind block with bls field (#12263)

This commit is contained in:
terencechain
2023-04-12 18:47:34 -07:00
committed by GitHub
parent 6b1efff4e8
commit 99eebe9bac
5 changed files with 35 additions and 10 deletions

View File

@@ -297,6 +297,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.Bellatrix))
r.Header.Add("User-Agent", version.BuildData())
}
rb, err := c.do(ctx, http.MethodPost, postBlindedBeaconBlockPath, bytes.NewBuffer(body), versionOpt)
@@ -327,6 +328,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)