Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
avalonche committed Jul 26, 2023
1 parent c0cb739 commit d9b476b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/api/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ import (
"strings"
"sync"
"time"
consensusspec "github.com/attestantio/go-eth2-client/spec"

"github.com/NYTimes/gziphandler"
builderCapella "github.com/attestantio/go-builder-client/api/capella"
"github.com/attestantio/go-builder-client/spec"
consensusapi "github.com/attestantio/go-eth2-client/api"
"github.com/attestantio/go-eth2-client/api/v1/capella"
consensusspec "github.com/attestantio/go-eth2-client/spec"
"github.com/attestantio/go-eth2-client/spec/phase0"
"github.com/buger/jsonparser"
"github.com/flashbots/go-boost-utils/bls"
Expand Down Expand Up @@ -1590,7 +1591,7 @@ func (api *RelayAPI) handleSubmitNewBlock(w http.ResponseWriter, req *http.Reque
return
}

payload := &spec.VersionedSubmitBlockRequest{
payload := &spec.VersionedSubmitBlockRequest{ //nolint:exhaustruct
Version: consensusspec.DataVersionCapella,
}
payload.Capella = new(builderCapella.SubmitBlockRequest)
Expand Down Expand Up @@ -1768,7 +1769,6 @@ func (api *RelayAPI) handleSubmitNewBlock(w http.ResponseWriter, req *http.Reque
// Verify the signature
log = log.WithField("timestampBeforeSignatureCheck", time.Now().UTC().UnixMilli())
signature := submission.Signature
fmt.Println(submission.BidTrace.String())
ok, err = boostTypes.VerifySignature(submission.BidTrace, api.opts.EthNetDetails.DomainBuilder, builderPubkey[:], signature[:])
log = log.WithField("timestampAfterSignatureCheck", time.Now().UTC().UnixMilli())
if err != nil {
Expand Down

0 comments on commit d9b476b

Please sign in to comment.