diff --git a/server/url_params.go b/server/url_params.go index f6d6863..661339b 100644 --- a/server/url_params.go +++ b/server/url_params.go @@ -69,6 +69,7 @@ var allowedHints = map[string]struct{}{ func ExtractParametersFromUrl(reqUrl *url.URL, allBuilders []string) (params URLParameters, err error) { if strings.HasPrefix(reqUrl.Path, "/fast") { params.fast = true + params.pref.Privacy.AllowTEE = true } // Normalize all query parameters to lowercase keys normalizedQuery := normalizeQueryParams(reqUrl) @@ -209,7 +210,7 @@ func ExtractParametersFromUrl(reqUrl *url.URL, allBuilders []string) (params URL if err != nil { return params, ErrIncorrectURLParam } - params.pref.Privacy.AllowBob = allowBobValue + params.pref.Privacy.AllowTEE = allowBobValue } return params, nil diff --git a/types/types.go b/types/types.go index c016876..e96864d 100644 --- a/types/types.go +++ b/types/types.go @@ -86,10 +86,12 @@ type TransactionReceipt struct { type PrivateTxStatus string -var TxStatusUnknown PrivateTxStatus = "UNKNOWN" -var TxStatusPending PrivateTxStatus = "PENDING" -var TxStatusIncluded PrivateTxStatus = "INCLUDED" -var TxStatusFailed PrivateTxStatus = "FAILED" +var ( + TxStatusUnknown PrivateTxStatus = "UNKNOWN" + TxStatusPending PrivateTxStatus = "PENDING" + TxStatusIncluded PrivateTxStatus = "INCLUDED" + TxStatusFailed PrivateTxStatus = "FAILED" +) type PrivateTxApiResponse struct { Status PrivateTxStatus `json:"status"` @@ -116,7 +118,7 @@ type TxPrivacyPreferences struct { Hints []string `json:"hints"` Builders []string `json:"builders"` UseMempool bool `json:"useMempool"` - AllowBob bool `json:"allowBob,omitempty"` + AllowTEE bool `json:"allowTee,omitempty"` MempoolRPC string `json:"mempoolRpc"` AuctionTimeout uint64 `json:"auctionTimeout,omitempty"` }