Skip to content

Commit

Permalink
fix: verify builder (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolly23 authored May 29, 2024
1 parent f0e69f0 commit ae1b147
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service/sentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ func (s *MevSentry) SendBid(ctx context.Context, args types.BidArgs) (bidHash co
log.Errorw("failed to parse bid signature", "err", err)
err = types.NewInvalidBidError(fmt.Sprintf("invalid signature:%v", err))
return
} else if _, ok = s.builders[builder]; !ok {
log.Errorw("builder not registered", "address", builder)
err = types.NewInvalidBidError("builder not registered")
return
}

payBidTx, err := validator.GeneratePayBidTx(ctx, builder, args.RawBid.BuilderFee)
Expand Down

0 comments on commit ae1b147

Please sign in to comment.