Skip to content

Commit 2e6c09f

Browse files
Merge pull request #205 from OffchainLabs/merge-v1.11.2
Merge v1.11.2
2 parents 501d340 + 558c5fe commit 2e6c09f

File tree

746 files changed

+30519
-19736
lines changed

Some content is hidden

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

746 files changed

+30519
-19736
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ accounts/usbwallet @karalabe
55
accounts/scwallet @gballet
66
accounts/abi @gballet @MariusVanDerWijden
77
cmd/clef @holiman
8-
cmd/puppeth @karalabe
98
consensus @karalabe
109
core/ @karalabe @holiman @rjl493456442
1110
eth/ @karalabe @holiman @rjl493456442
@@ -14,7 +13,6 @@ eth/tracers/ @s1na
1413
graphql/ @gballet @s1na
1514
les/ @zsfelfoldi @rjl493456442
1615
light/ @zsfelfoldi @rjl493456442
17-
mobile/ @karalabe @ligi
1816
node/ @fjl
1917
p2p/ @fjl @zsfelfoldi
2018
rpc/ @fjl @holiman

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ assignees: ''
99
#### System information
1010

1111
Geth version: `geth version`
12+
CL client & version: e.g. lighthouse/nimbus/prysm@v1.0.0
1213
OS & Version: Windows/Linux/OSX
1314
Commit hash : (if `develop`)
1415

@@ -27,4 +28,4 @@ Commit hash : (if `develop`)
2728
[backtrace]
2829
````
2930

30-
When submitting logs: please submit them as text and not screenshots.
31+
When submitting logs: please submit them as text and not screenshots.

.golangci.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,19 @@ run:
1212
linters:
1313
disable-all: true
1414
enable:
15-
- deadcode
1615
- goconst
1716
- goimports
1817
- gosimple
1918
- govet
2019
- ineffassign
2120
- misspell
2221
- unconvert
23-
- varcheck
2422
- typecheck
2523
- unused
2624
- staticcheck
2725
- bidichk
2826
- durationcheck
2927
- exportloopref
30-
- gosec
3128
- whitespace
3229

3330
# - structcheck # lots of false positives
@@ -45,11 +42,6 @@ linters-settings:
4542
goconst:
4643
min-len: 3 # minimum length of string constant
4744
min-occurrences: 6 # minimum number of occurrences
48-
gosec:
49-
excludes:
50-
- G404 # Use of weak random number generator - lots of FP
51-
- G107 # Potential http request -- those are intentional
52-
- G306 # G306: Expect WriteFile permissions to be 0600 or less
5345

5446
issues:
5547
exclude-rules:
@@ -58,16 +50,15 @@ issues:
5850
- deadcode
5951
- staticcheck
6052
- path: internal/build/pgp.go
61-
text: 'SA1019: package golang.org/x/crypto/openpgp is deprecated'
53+
text: 'SA1019: "golang.org/x/crypto/openpgp" is deprecated: this package is unmaintained except for security fixes.'
6254
- path: core/vm/contracts.go
63-
text: 'SA1019: package golang.org/x/crypto/ripemd160 is deprecated'
55+
text: 'SA1019: "golang.org/x/crypto/ripemd160" is deprecated: RIPEMD-160 is a legacy hash and should not be used for new applications.'
6456
- path: accounts/usbwallet/trezor.go
65-
text: 'SA1019: package github.com/golang/protobuf/proto is deprecated'
57+
text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.'
6658
- path: accounts/usbwallet/trezor/
67-
text: 'SA1019: package github.com/golang/protobuf/proto is deprecated'
59+
text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.'
6860
exclude:
6961
- 'SA1019: event.TypeMux is deprecated: use Feed'
7062
- 'SA1019: strings.Title is deprecated'
7163
- '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.'
7264
- 'SA1029: should not use built-in type string as key for value'
73-
- 'G306: Expect WriteFile permissions to be 0600 or less'

.travis.yml

Lines changed: 12 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ jobs:
88
go: 1.17.x
99
env:
1010
- azure-osx
11-
- azure-ios
12-
- cocoapods-ios
1311

1412
include:
1513
# This builder only tests code linters on latest version of Go
1614
- stage: lint
1715
os: linux
1816
dist: bionic
19-
go: 1.18.x
17+
go: 1.20.x
2018
env:
2119
- lint
2220
git:
@@ -31,7 +29,7 @@ jobs:
3129
os: linux
3230
arch: amd64
3331
dist: bionic
34-
go: 1.18.x
32+
go: 1.20.x
3533
env:
3634
- docker
3735
services:
@@ -48,7 +46,7 @@ jobs:
4846
os: linux
4947
arch: arm64
5048
dist: bionic
51-
go: 1.18.x
49+
go: 1.20.x
5250
env:
5351
- docker
5452
services:
@@ -65,7 +63,7 @@ jobs:
6563
if: type = push
6664
os: linux
6765
dist: bionic
68-
go: 1.18.x
66+
go: 1.20.x
6967
env:
7068
- ubuntu-ppa
7169
- GO111MODULE=on
@@ -90,7 +88,7 @@ jobs:
9088
os: linux
9189
dist: bionic
9290
sudo: required
93-
go: 1.18.x
91+
go: 1.20.x
9492
env:
9593
- azure-linux
9694
- GO111MODULE=on
@@ -120,81 +118,26 @@ jobs:
120118
- go run build/ci.go install -dlgo -arch arm64 -cc aarch64-linux-gnu-gcc
121119
- go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
122120

123-
# This builder does the Android Maven and Azure uploads
124-
- stage: build
125-
if: type = push
126-
os: linux
127-
dist: bionic
128-
addons:
129-
apt:
130-
packages:
131-
- openjdk-8-jdk
132-
env:
133-
- azure-android
134-
- maven-android
135-
- GO111MODULE=on
136-
git:
137-
submodules: false # avoid cloning ethereum/tests
138-
before_install:
139-
# Install Android and it's dependencies manually, Travis is stale
140-
- export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
141-
- curl https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest.zip -o android.zip
142-
- unzip -q android.zip -d $HOME/sdk && rm android.zip
143-
- mv $HOME/sdk/cmdline-tools $HOME/sdk/latest && mkdir $HOME/sdk/cmdline-tools && mv $HOME/sdk/latest $HOME/sdk/cmdline-tools
144-
- export PATH=$PATH:$HOME/sdk/cmdline-tools/latest/bin
145-
- export ANDROID_HOME=$HOME/sdk
146-
147-
- yes | sdkmanager --licenses >/dev/null
148-
- sdkmanager "platform-tools" "platforms;android-15" "platforms;android-19" "platforms;android-24" "ndk-bundle"
149-
150-
# Install Go to allow building with
151-
- curl https://dl.google.com/go/go1.18.linux-amd64.tar.gz | tar -xz
152-
- export PATH=`pwd`/go/bin:$PATH
153-
- export GOROOT=`pwd`/go
154-
- export GOPATH=$HOME/go
155-
script:
156-
# Build the Android archive and upload it to Maven Central and Azure
157-
- mkdir -p $GOPATH/src/github.com/ethereum
158-
- ln -s `pwd` $GOPATH/src/github.com/ethereum/go-ethereum
159-
- go run build/ci.go aar -signer ANDROID_SIGNING_KEY -signify SIGNIFY_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
160-
161-
# This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads
121+
# This builder does the OSX Azure uploads
162122
- stage: build
163123
if: type = push
164124
os: osx
165-
go: 1.18.x
125+
go: 1.20.x
166126
env:
167127
- azure-osx
168-
- azure-ios
169-
- cocoapods-ios
170128
- GO111MODULE=on
171129
git:
172130
submodules: false # avoid cloning ethereum/tests
173131
script:
174132
- go run build/ci.go install -dlgo
175133
- go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
176134

177-
# Build the iOS framework and upload it to CocoaPods and Azure
178-
- gem uninstall cocoapods -a -x
179-
- gem install cocoapods
180-
181-
- mv ~/.cocoapods/repos/master ~/.cocoapods/repos/master.bak
182-
- sed -i '.bak' 's/repo.join/!repo.join/g' $(dirname `gem which cocoapods`)/cocoapods/sources_manager.rb
183-
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git clone --depth=1 https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master && pod setup --verbose; fi
184-
185-
- xctool -version
186-
- xcrun simctl list
187-
188-
# Workaround for https://github.com/golang/go/issues/23749
189-
- export CGO_CFLAGS_ALLOW='-fmodules|-fblocks|-fobjc-arc'
190-
- go run build/ci.go xcode -signer IOS_SIGNING_KEY -signify SIGNIFY_KEY -deploy trunk -upload gethstore/builds
191-
192135
# These builders run the tests
193136
- stage: build
194137
os: linux
195138
arch: amd64
196139
dist: bionic
197-
go: 1.18.x
140+
go: 1.20.x
198141
env:
199142
- GO111MODULE=on
200143
script:
@@ -205,7 +148,7 @@ jobs:
205148
os: linux
206149
arch: arm64
207150
dist: bionic
208-
go: 1.18.x
151+
go: 1.19.x
209152
env:
210153
- GO111MODULE=on
211154
script:
@@ -214,7 +157,7 @@ jobs:
214157
- stage: build
215158
os: linux
216159
dist: bionic
217-
go: 1.17.x
160+
go: 1.19.x
218161
env:
219162
- GO111MODULE=on
220163
script:
@@ -225,7 +168,7 @@ jobs:
225168
if: type = cron
226169
os: linux
227170
dist: bionic
228-
go: 1.18.x
171+
go: 1.20.x
229172
env:
230173
- azure-purge
231174
- GO111MODULE=on
@@ -239,7 +182,7 @@ jobs:
239182
if: type = cron
240183
os: linux
241184
dist: bionic
242-
go: 1.18.x
185+
go: 1.20.x
243186
env:
244187
- GO111MODULE=on
245188
script:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG VERSION=""
44
ARG BUILDNUM=""
55

66
# Build Geth in a stock Go builder container
7-
FROM golang:1.18-alpine as builder
7+
FROM golang:1.20-alpine as builder
88

99
RUN apk add --no-cache gcc musl-dev linux-headers git
1010

Dockerfile.alltools

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG VERSION=""
44
ARG BUILDNUM=""
55

66
# Build Geth in a stock Go builder container
7-
FROM golang:1.18-alpine as builder
7+
FROM golang:1.20-alpine as builder
88

99
RUN apk add --no-cache gcc musl-dev linux-headers git
1010

Makefile

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,6 @@ geth:
1616
all:
1717
$(GORUN) build/ci.go install
1818

19-
android:
20-
$(GORUN) build/ci.go aar --local
21-
@echo "Done building."
22-
@echo "Import \"$(GOBIN)/geth.aar\" to use the library."
23-
@echo "Import \"$(GOBIN)/geth-sources.jar\" to add javadocs"
24-
@echo "For more info see https://stackoverflow.com/questions/20994336/android-studio-how-to-attach-javadoc"
25-
26-
ios:
27-
$(GORUN) build/ci.go xcode --local
28-
@echo "Done building."
29-
@echo "Import \"$(GOBIN)/Geth.framework\" to use the library."
30-
3119
test: all
3220
$(GORUN) build/ci.go test
3321

0 commit comments

Comments
 (0)