Skip to content

Commit

Permalink
relay fast-mode info (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
TymKh authored May 29, 2024
1 parent 1b2a3a1 commit 1d17dbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions server/url_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func ExtractParametersFromUrl(url *url.URL, allBuilders []string) (params URLPar
params.pref.Privacy.Builders = targetBuildersQuery
}
if params.fast {
params.pref.Fast = true
// set all builders no matter what's in the url
params.pref.Privacy.Builders = allBuilders
}
Expand Down
6 changes: 3 additions & 3 deletions types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ package types
import (
"encoding/json"
"fmt"
"github.com/ethereum/go-ethereum/common"
"time"

"github.com/metachris/flashbotsrpc"
"github.com/ethereum/go-ethereum/common"
)

// As per JSON-RPC 2.0 Specification
Expand Down Expand Up @@ -108,7 +107,7 @@ type BundleResponse struct {
}

type SendPrivateTxRequestWithPreferences struct {
flashbotsrpc.FlashbotsSendPrivateTransactionRequest
Tx string `json:"tx"`
Preferences *PrivateTxPreferences `json:"preferences,omitempty"`
}

Expand All @@ -129,4 +128,5 @@ type RefundConfig struct {
type PrivateTxPreferences struct {
Privacy TxPrivacyPreferences `json:"privacy"`
Validity TxValidityPreferences `json:"validity"`
Fast bool `json:"fast"`
}

0 comments on commit 1d17dbf

Please sign in to comment.