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

Set cancellations to 1 instead of true #121

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading