Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Set cancellations to 1 instead of true (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wazzymandias authored Oct 4, 2023
1 parent 7f43d0b commit f8e796f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builder/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (r *RemoteRelay) SubmitBlock(msg *bellatrix.SubmitBlockRequest, _ Validator
log.Info("submitting block to remote relay", "endpoint", r.config.Endpoint)
endpoint := r.config.Endpoint + "/relay/v1/builder/blocks"
if r.cancellationsEnabled {
endpoint = endpoint + "?cancellations=true"
endpoint = endpoint + "?cancellations=1"
}
code, err := SendHTTPRequest(context.TODO(), *http.DefaultClient, http.MethodPost, endpoint, msg, nil)
if err != nil {
Expand All @@ -160,7 +160,7 @@ func (r *RemoteRelay) SubmitBlockCapella(msg *capella.SubmitBlockRequest, _ Vali

endpoint := r.config.Endpoint + "/relay/v1/builder/blocks"
if r.cancellationsEnabled {
endpoint = endpoint + "?cancellations=true"
endpoint = endpoint + "?cancellations=1"
}

if r.config.SszEnabled {
Expand Down

0 comments on commit f8e796f

Please sign in to comment.