forked from flashbots/mev-boost
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
20 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ^1.21.0 | ||
go-version: ^1.22.0 | ||
id: go | ||
|
||
- name: Ensure go mod tidy runs without changes | ||
|
@@ -27,13 +27,13 @@ jobs: | |
git diff-index --quiet HEAD | ||
- name: Install gofumpt | ||
run: go install mvdan.cc/gofumpt@v0.4.0 | ||
run: go install mvdan.cc/gofumpt@v0.6.0 | ||
|
||
- name: Install staticcheck | ||
run: go install honnef.co/go/tools/cmd/[email protected] | ||
|
||
- name: Install golangci-lint | ||
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.55.0 | ||
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.1 | ||
|
||
- name: Lint | ||
run: make lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ linters: | |
- ireturn | ||
- noctx | ||
- tagliatelle | ||
- perfsprint | ||
|
||
# | ||
# Disabled because of generics: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,14 +6,7 @@ Please start by reading our [code of conduct](CODE_OF_CONDUCT.md). | |
|
||
## Set up | ||
|
||
Install a few dev dependencies for `make lint`: | ||
|
||
```bash | ||
go install github.com/mgechev/[email protected] | ||
go install mvdan.cc/[email protected] | ||
go install honnef.co/go/tools/cmd/[email protected] | ||
go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
``` | ||
Install a few dev dependencies for `make lint`: https://github.com/flashbots/mev-boost/blob/go122/.github/workflows/lint.yml#L29-L37 | ||
|
||
Look at the [README for instructions to install the dependencies and build `mev-boost`](README.md#installing) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM golang:1.21 as builder | ||
FROM golang:1.22 as builder | ||
ARG VERSION | ||
WORKDIR /build | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package server | ||
|
||
import "fmt" | ||
import "errors" | ||
|
||
// ErrMissingRelayPubkey is returned if a new RelayEntry URL has no public key. | ||
var ErrMissingRelayPubkey = fmt.Errorf("missing relay public key") | ||
var ErrMissingRelayPubkey = errors.New("missing relay public key") | ||
|
||
// ErrPointAtInfinityPubkey is returned if a new RelayEntry URL has an all-zero public key. | ||
var ErrPointAtInfinityPubkey = fmt.Errorf("relay public key cannot be the point-at-infinity") | ||
var ErrPointAtInfinityPubkey = errors.New("relay public key cannot be the point-at-infinity") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters