Skip to content

Commit 6807599

Browse files
authored
Merge pull request #602 from ethereum-optimism/geth/v1.15.11
all: Merge go-ethereum v1.15.11
2 parents 38ad2ad + 93f456d commit 6807599

File tree

556 files changed

+86915
-16077
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

556 files changed

+86915
-16077
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ orbs:
88
parameters:
99
go_version:
1010
type: string
11-
default: 1.22.7 # update CI Go version here
11+
default: 1.23.8 # update CI Go version here
1212

1313
commands:
1414
gcp-oidc-authenticate:

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,16 @@ profile.cov
4343
.vscode
4444

4545
tests/spec-tests/
46+
47+
# binaries
48+
cmd/abidump/abidump
49+
cmd/abigen/abigen
50+
cmd/blsync/blsync
51+
cmd/clef/clef
52+
cmd/devp2p/devp2p
53+
cmd/era/era
54+
cmd/ethkey/ethkey
55+
cmd/evm/evm
56+
cmd/geth/geth
57+
cmd/rlpdump/rlpdump
58+
cmd/workload/workload

.golangci.yml

Lines changed: 74 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,25 @@
11
# This file configures github.com/golangci/golangci-lint.
2-
# see <https://golangci-lint.run/usage/configuration>
3-
2+
version: '2'
43
run:
5-
timeout: 20m
64
tests: true
7-
85
linters:
9-
disable-all: true
6+
default: none
107
enable:
11-
- goimports
12-
- gosimple
13-
- govet
14-
- ineffassign
15-
- misspell
16-
- unconvert
17-
- typecheck
18-
- unused
19-
- staticcheck
208
- bidichk
21-
- durationcheck
229
- copyloopvar
23-
- whitespace
24-
- revive # only certain checks enabled
2510
- durationcheck
2611
- gocheckcompilerdirectives
27-
- reassign
12+
- govet
13+
- ineffassign
2814
- mirror
15+
- misspell
16+
- reassign
17+
- revive # only certain checks enabled
18+
- staticcheck
19+
- unconvert
20+
- unused
2921
- usetesting
22+
- whitespace
3023
### linters we tried and will not be using:
3124
###
3225
# - structcheck # lots of false positives
@@ -37,44 +30,67 @@ linters:
3730
# - exhaustive # silly check
3831
# - makezero # false positives
3932
# - nilerr # several intentional
40-
41-
linters-settings:
42-
gofmt:
43-
simplify: true
44-
revive:
45-
enable-all-rules: false
46-
# here we enable specific useful rules
47-
# see https://golangci-lint.run/usage/linters/#revive for supported rules
33+
settings:
34+
staticcheck:
35+
checks:
36+
# disable Quickfixes
37+
- -QF1*
38+
revive:
39+
enable-all-rules: false
40+
# here we enable specific useful rules
41+
# see https://golangci-lint.run/usage/linters/#revive for supported rules
42+
rules:
43+
- name: receiver-naming
44+
severity: warning
45+
disabled: false
46+
exclude:
47+
- ''
48+
exclusions:
49+
generated: lax
50+
presets:
51+
- comments
52+
- common-false-positives
53+
- legacy
54+
- std-error-handling
4855
rules:
49-
- name: receiver-naming
50-
severity: warning
51-
disabled: false
52-
exclude: [""]
53-
54-
issues:
55-
# default is true. Enables skipping of directories:
56-
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
57-
exclude-dirs-use-default: true
58-
exclude-dirs:
59-
- core/genesis_alloc.go
60-
exclude-rules:
61-
- path: crypto/bn256/cloudflare/optate.go
62-
linters:
63-
- deadcode
64-
- staticcheck
65-
- path: crypto/bn256/
66-
linters:
67-
- revive
68-
- path: cmd/utils/flags.go
69-
text: "SA1019: cfg.TxLookupLimit is deprecated: use 'TransactionHistory' instead."
70-
- path: cmd/utils/flags.go
71-
text: "SA1019: ethconfig.Defaults.TxLookupLimit is deprecated: use 'TransactionHistory' instead."
72-
- path: internal/build/pgp.go
73-
text: 'SA1019: "golang.org/x/crypto/openpgp" is deprecated: this package is unmaintained except for security fixes.'
74-
- path: core/vm/contracts.go
75-
text: 'SA1019: "golang.org/x/crypto/ripemd160" is deprecated: RIPEMD-160 is a legacy hash and should not be used for new applications.'
76-
exclude:
77-
- 'SA1019: event.TypeMux is deprecated: use Feed'
78-
- 'SA1019: strings.Title is deprecated'
79-
- 'SA1019: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead.'
80-
- 'SA1029: should not use built-in type string as key for value'
56+
- linters:
57+
- deadcode
58+
- staticcheck
59+
path: crypto/bn256/cloudflare/optate.go
60+
- linters:
61+
- revive
62+
path: crypto/bn256/
63+
- path: cmd/utils/flags.go
64+
text: "SA1019: cfg.TxLookupLimit is deprecated: use 'TransactionHistory' instead."
65+
- path: cmd/utils/flags.go
66+
text: "SA1019: ethconfig.Defaults.TxLookupLimit is deprecated: use 'TransactionHistory' instead."
67+
- path: internal/build/pgp.go
68+
text: 'SA1019: "golang.org/x/crypto/openpgp" is deprecated: this package is unmaintained except for security fixes.'
69+
- path: core/vm/contracts.go
70+
text: 'SA1019: "golang.org/x/crypto/ripemd160" is deprecated: RIPEMD-160 is a legacy hash and should not be used for new applications.'
71+
- path: (.+)\.go$
72+
text: 'SA1019: event.TypeMux is deprecated: use Feed'
73+
- path: (.+)\.go$
74+
text: 'SA1019: strings.Title is deprecated'
75+
- path: (.+)\.go$
76+
text: 'SA1019: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead.'
77+
- path: (.+)\.go$
78+
text: 'SA1029: should not use built-in type string as key for value'
79+
paths:
80+
- core/genesis_alloc.go
81+
- third_party$
82+
- builtin$
83+
- examples$
84+
formatters:
85+
enable:
86+
- goimports
87+
settings:
88+
gofmt:
89+
simplify: true
90+
exclusions:
91+
generated: lax
92+
paths:
93+
- core/genesis_alloc.go
94+
- third_party$
95+
- builtin$
96+
- examples$

.travis.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ language: go
22
go_import_path: github.com/ethereum/go-ethereum
33
sudo: false
44
jobs:
5-
allow_failures:
6-
- stage: build
7-
os: osx
8-
env:
9-
- azure-osx
10-
115
include:
126
# This builder create and push the Docker images for all architectures
137
- stage: build
@@ -62,23 +56,6 @@ jobs:
6256
- go run build/ci.go install -dlgo -arch arm64 -cc aarch64-linux-gnu-gcc
6357
- go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
6458

65-
# This builder does the OSX Azure uploads
66-
- stage: build
67-
if: type = push
68-
os: osx
69-
osx_image: xcode14.2
70-
go: 1.23.1 # See https://github.com/ethereum/go-ethereum/pull/30478
71-
env:
72-
- azure-osx
73-
git:
74-
submodules: false # avoid cloning ethereum/tests
75-
script:
76-
- ln -sf /Users/travis/gopath/bin/go1.23.1 /usr/local/bin/go # Work around travis go-setup bug
77-
- go run build/ci.go install -dlgo
78-
- go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
79-
- go run build/ci.go install -dlgo -arch arm64
80-
- go run build/ci.go archive -arch arm64 -type tar -signer OSX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
81-
8259
# These builders run the tests
8360
- stage: build
8461
if: type = push

0 commit comments

Comments
 (0)