Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.

Commit d07884d

Browse files
authored
Merge pull request #39 from makerdao/upgrade/v1.11.5
Upgrade/v1.11.5
2 parents 5663c38 + a6503c4 commit d07884d

File tree

802 files changed

+38815
-21533
lines changed

Some content is hidden

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

802 files changed

+38815
-21533
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/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ and help.
3535

3636
## Configuration, dependencies, and tests
3737

38-
Please see the [Developers' Guide](https://geth.ethereum.org/docs/developers/devguide)
38+
Please see the [Developers' Guide](https://geth.ethereum.org/docs/developers/geth-developer/dev-guide)
3939
for more details on configuring your environment, managing project dependencies
4040
and testing procedures.

.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/[email protected]
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: 39 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,15 @@ jobs:
55
allow_failures:
66
- stage: build
77
os: osx
8-
go: 1.17.x
98
env:
109
- azure-osx
11-
- azure-ios
12-
- cocoapods-ios
1310

1411
include:
1512
# This builder only tests code linters on latest version of Go
1613
- stage: lint
1714
os: linux
1815
dist: bionic
19-
go: 1.18.x
16+
go: 1.20.x
2017
env:
2118
- lint
2219
git:
@@ -31,7 +28,7 @@ jobs:
3128
os: linux
3229
arch: amd64
3330
dist: bionic
34-
go: 1.18.x
31+
go: 1.20.x
3532
env:
3633
- docker
3734
services:
@@ -48,7 +45,7 @@ jobs:
4845
os: linux
4946
arch: arm64
5047
dist: bionic
51-
go: 1.18.x
48+
go: 1.20.x
5249
env:
5350
- docker
5451
services:
@@ -60,37 +57,13 @@ jobs:
6057
script:
6158
- go run build/ci.go docker -image -manifest amd64,arm64 -upload ethereum/client-go
6259

63-
# This builder does the Ubuntu PPA upload
64-
- stage: build
65-
if: type = push
66-
os: linux
67-
dist: bionic
68-
go: 1.18.x
69-
env:
70-
- ubuntu-ppa
71-
- GO111MODULE=on
72-
git:
73-
submodules: false # avoid cloning ethereum/tests
74-
addons:
75-
apt:
76-
packages:
77-
- devscripts
78-
- debhelper
79-
- dput
80-
- fakeroot
81-
- python-bzrlib
82-
- python-paramiko
83-
script:
84-
- echo '|1|7SiYPr9xl3uctzovOTj4gMwAC1M=|t6ReES75Bo/PxlOPJ6/GsGbTrM0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0aKz5UTUndYgIGG7dQBV+HaeuEZJ2xPHo2DS2iSKvUL4xNMSAY4UguNW+pX56nAQmZKIZZ8MaEvSj6zMEDiq6HFfn5JcTlM80UwlnyKe8B8p7Nk06PPQLrnmQt5fh0HmEcZx+JU9TZsfCHPnX7MNz4ELfZE6cFsclClrKim3BHUIGq//t93DllB+h4O9LHjEUsQ1Sr63irDLSutkLJD6RXchjROXkNirlcNVHH/jwLWR5RcYilNX7S5bIkK8NlWPjsn/8Ua5O7I9/YoE97PpO6i73DTGLh5H9JN/SITwCKBkgSDWUt61uPK3Y11Gty7o2lWsBjhBUm2Y38CBsoGmBw==' >> ~/.ssh/known_hosts
85-
- go run build/ci.go debsrc -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <[email protected]>"
86-
8760
# This builder does the Linux Azure uploads
8861
- stage: build
8962
if: type = push
9063
os: linux
9164
dist: bionic
9265
sudo: required
93-
go: 1.18.x
66+
go: 1.20.x
9467
env:
9568
- azure-linux
9669
- GO111MODULE=on
@@ -120,112 +93,81 @@ jobs:
12093
- go run build/ci.go install -dlgo -arch arm64 -cc aarch64-linux-gnu-gcc
12194
- go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
12295

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
96+
# This builder does the OSX Azure uploads
16297
- stage: build
16398
if: type = push
16499
os: osx
165-
go: 1.18.x
100+
go: 1.20.x
166101
env:
167102
- azure-osx
168-
- azure-ios
169-
- cocoapods-ios
170103
- GO111MODULE=on
171104
git:
172105
submodules: false # avoid cloning ethereum/tests
173106
script:
174107
- go run build/ci.go install -dlgo
175108
- go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
176109

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-
192110
# These builders run the tests
193111
- stage: build
194112
os: linux
195113
arch: amd64
196114
dist: bionic
197-
go: 1.18.x
115+
go: 1.20.x
198116
env:
199117
- GO111MODULE=on
200118
script:
201-
- go run build/ci.go test -coverage $TEST_PACKAGES
119+
- go run build/ci.go test $TEST_PACKAGES
202120

203121
- stage: build
204122
if: type = pull_request
205123
os: linux
206124
arch: arm64
207125
dist: bionic
208-
go: 1.18.x
126+
go: 1.19.x
209127
env:
210128
- GO111MODULE=on
211129
script:
212-
- go run build/ci.go test -coverage $TEST_PACKAGES
130+
- go run build/ci.go test $TEST_PACKAGES
213131

214132
- stage: build
215133
os: linux
216134
dist: bionic
217-
go: 1.17.x
135+
go: 1.19.x
218136
env:
219137
- GO111MODULE=on
220138
script:
221-
- go run build/ci.go test -coverage $TEST_PACKAGES
139+
- go run build/ci.go test $TEST_PACKAGES
140+
141+
# This builder does the Ubuntu PPA nightly uploads
142+
- stage: build
143+
if: type = cron || (type = push && tag ~= /^v[0-9]/)
144+
os: linux
145+
dist: bionic
146+
go: 1.20.x
147+
env:
148+
- ubuntu-ppa
149+
- GO111MODULE=on
150+
git:
151+
submodules: false # avoid cloning ethereum/tests
152+
addons:
153+
apt:
154+
packages:
155+
- devscripts
156+
- debhelper
157+
- dput
158+
- fakeroot
159+
- python-bzrlib
160+
- python-paramiko
161+
script:
162+
- echo '|1|7SiYPr9xl3uctzovOTj4gMwAC1M=|t6ReES75Bo/PxlOPJ6/GsGbTrM0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0aKz5UTUndYgIGG7dQBV+HaeuEZJ2xPHo2DS2iSKvUL4xNMSAY4UguNW+pX56nAQmZKIZZ8MaEvSj6zMEDiq6HFfn5JcTlM80UwlnyKe8B8p7Nk06PPQLrnmQt5fh0HmEcZx+JU9TZsfCHPnX7MNz4ELfZE6cFsclClrKim3BHUIGq//t93DllB+h4O9LHjEUsQ1Sr63irDLSutkLJD6RXchjROXkNirlcNVHH/jwLWR5RcYilNX7S5bIkK8NlWPjsn/8Ua5O7I9/YoE97PpO6i73DTGLh5H9JN/SITwCKBkgSDWUt61uPK3Y11Gty7o2lWsBjhBUm2Y38CBsoGmBw==' >> ~/.ssh/known_hosts
163+
- go run build/ci.go debsrc -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <[email protected]>"
222164

223165
# This builder does the Azure archive purges to avoid accumulating junk
224166
- stage: build
225167
if: type = cron
226168
os: linux
227169
dist: bionic
228-
go: 1.18.x
170+
go: 1.20.x
229171
env:
230172
- azure-purge
231173
- GO111MODULE=on
@@ -239,9 +181,9 @@ jobs:
239181
if: type = cron
240182
os: linux
241183
dist: bionic
242-
go: 1.18.x
184+
go: 1.20.x
243185
env:
244186
- GO111MODULE=on
245187
script:
246-
- go run build/ci.go test -race -coverage $TEST_PACKAGES
188+
- go run build/ci.go test -race $TEST_PACKAGES
247189

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)