Skip to content

Commit

Permalink
fix builders and log info
Browse files Browse the repository at this point in the history
  • Loading branch information
TymKh committed Oct 12, 2023
1 parent 53d5828 commit 7663050
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion application/builder_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package application
import (
"context"
"encoding/json"
"strings"
"time"

"github.com/ethereum/go-ethereum/log"
Expand Down Expand Up @@ -42,7 +43,7 @@ func (bis *BuilderInfoService) Builders() []BuilderInfo {
func (bis *BuilderInfoService) BuilderNames() []string {
var names = make([]string, 0, len(bis.builderInfos))
for _, builderInfo := range bis.builderInfos {
names = append(names, builderInfo.Name)
names = append(names, strings.ToLower(builderInfo.Name))
}
return names
}
Expand Down
2 changes: 1 addition & 1 deletion server/request_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (r *RpcRequest) sendTxToRelay() {
rpc.Headers["X-Flashbots-Origin"] = r.urlParams.originId
}
})

r.logger.Info("[sendTxToRelay] sending transaction", "builders count", len(sendPrivateTxArgs.Preferences.Privacy.Builders), "is_fast", r.urlParams.fast)
_, err = fbRpc.CallWithFlashbotsSignature("eth_sendPrivateTransaction", r.relaySigningKey, sendPrivateTxArgs)
if err != nil {
if errors.Is(err, flashbotsrpc.ErrRelayErrorResponse) {
Expand Down

0 comments on commit 7663050

Please sign in to comment.