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

Commit f8e796f

Browse files
authored
Set cancellations to 1 instead of true (#121)
1 parent 7f43d0b commit f8e796f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/relay.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (r *RemoteRelay) SubmitBlock(msg *bellatrix.SubmitBlockRequest, _ Validator
138138
log.Info("submitting block to remote relay", "endpoint", r.config.Endpoint)
139139
endpoint := r.config.Endpoint + "/relay/v1/builder/blocks"
140140
if r.cancellationsEnabled {
141-
endpoint = endpoint + "?cancellations=true"
141+
endpoint = endpoint + "?cancellations=1"
142142
}
143143
code, err := SendHTTPRequest(context.TODO(), *http.DefaultClient, http.MethodPost, endpoint, msg, nil)
144144
if err != nil {
@@ -160,7 +160,7 @@ func (r *RemoteRelay) SubmitBlockCapella(msg *capella.SubmitBlockRequest, _ Vali
160160

161161
endpoint := r.config.Endpoint + "/relay/v1/builder/blocks"
162162
if r.cancellationsEnabled {
163-
endpoint = endpoint + "?cancellations=true"
163+
endpoint = endpoint + "?cancellations=1"
164164
}
165165

166166
if r.config.SszEnabled {

0 commit comments

Comments
 (0)