Skip to content

Commit f2d2e4b

Browse files
authored
Merge pull request #1557 from ledgerwatch/geth-1-10-1
Geth 1.10.1 -- Berlin support
2 parents a0b7a11 + 0d24a38 commit f2d2e4b

File tree

376 files changed

+14763
-18950
lines changed

Some content is hidden

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

376 files changed

+14763
-18950
lines changed
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
Hi there,
2-
3-
Please note that this is an issue tracker reserved for bug reports and feature requests.
4-
5-
For general questions please use [discord](https://discord.gg/nthXNEv) or the Ethereum stack exchange at https://ethereum.stackexchange.com.
1+
---
2+
name: Report a bug
3+
about: Something with go-ethereum is not working as expected
4+
title: ''
5+
labels: 'type:bug'
6+
assignees: ''
7+
---
68

79
#### System information
810

.github/ISSUE_TEMPLATE/feature.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Request a feature
3+
about: Report a missing feature - e.g. as a step before submitting a PR
4+
title: ''
5+
labels: 'type:feature'
6+
assignees: ''
7+
---
8+
9+
# Rationale
10+
11+
Why should this feature exist?
12+
What are the use-cases?
13+
14+
# Implementation
15+
16+
Do you have ideas regarding the implementation of this feature?
17+
Are you willing to implement this feature?

.github/ISSUE_TEMPLATE/question.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: Ask a question
3+
about: Something is unclear
4+
title: ''
5+
labels: 'type:docs'
6+
assignees: ''
7+
---
8+
9+
This should only be used in very rare cases e.g. if you are not 100% sure if something is a bug or asking a question that leads to improving the documentation. For general questions please use [discord](https://discord.gg/nthXNEv) or the Ethereum stack exchange at https://ethereum.stackexchange.com.

.travis.yml

Lines changed: 46 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
allow_failures:
66
- stage: build
77
os: osx
8-
go: 1.14.x
8+
go: 1.15.x
99
env:
1010
- azure-osx
1111
- azure-ios
@@ -15,8 +15,8 @@ jobs:
1515
# This builder only tests code linters on latest version of Go
1616
- stage: lint
1717
os: linux
18-
dist: xenial
19-
go: 1.15.x
18+
dist: bionic
19+
go: 1.16.x
2020
env:
2121
- lint
2222
git:
@@ -28,8 +28,8 @@ jobs:
2828
- stage: build
2929
if: type = push
3030
os: linux
31-
dist: xenial
32-
go: 1.15.x
31+
dist: bionic
32+
go: 1.16.x
3333
env:
3434
- ubuntu-ppa
3535
- GO111MODULE=on
@@ -52,9 +52,9 @@ jobs:
5252
- stage: build
5353
if: type = push
5454
os: linux
55-
dist: xenial
55+
dist: bionic
5656
sudo: required
57-
go: 1.15.x
57+
go: 1.16.x
5858
env:
5959
- azure-linux
6060
- GO111MODULE=on
@@ -67,31 +67,31 @@ jobs:
6767
script:
6868
# Build for the primary platforms that Trusty can manage
6969
- go run build/ci.go install -dlgo
70-
- go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
70+
- go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
7171
- go run build/ci.go install -dlgo -arch 386
72-
- go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
72+
- go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
7373

7474
# Switch over GCC to cross compilation (breaks 386, hence why do it here only)
7575
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install gcc-arm-linux-gnueabi libc6-dev-armel-cross gcc-arm-linux-gnueabihf libc6-dev-armhf-cross gcc-aarch64-linux-gnu libc6-dev-arm64-cross
7676
- sudo ln -s /usr/include/asm-generic /usr/include/asm
7777

7878
- GOARM=5 go run build/ci.go install -dlgo -arch arm -cc arm-linux-gnueabi-gcc
79-
- GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
79+
- GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
8080
- GOARM=6 go run build/ci.go install -dlgo -arch arm -cc arm-linux-gnueabi-gcc
81-
- GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
81+
- GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
8282
- GOARM=7 go run build/ci.go install -dlgo -arch arm -cc arm-linux-gnueabihf-gcc
83-
- GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
83+
- GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
8484
- go run build/ci.go install -dlgo -arch arm64 -cc aarch64-linux-gnu-gcc
85-
- go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
85+
- go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
8686

8787
# This builder does the Linux Azure MIPS xgo uploads
8888
- stage: build
8989
if: type = push
9090
os: linux
91-
dist: xenial
91+
dist: bionic
9292
services:
9393
- docker
94-
go: 1.15.x
94+
go: 1.16.x
9595
env:
9696
- azure-linux-mips
9797
- GO111MODULE=on
@@ -100,64 +100,63 @@ jobs:
100100
script:
101101
- go run build/ci.go xgo --alltools -- --targets=linux/mips --ldflags '-extldflags "-static"' -v
102102
- for bin in build/bin/*-linux-mips; do mv -f "${bin}" "${bin/-linux-mips/}"; done
103-
- go run build/ci.go archive -arch mips -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
103+
- go run build/ci.go archive -arch mips -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
104104

105105
- go run build/ci.go xgo --alltools -- --targets=linux/mipsle --ldflags '-extldflags "-static"' -v
106106
- for bin in build/bin/*-linux-mipsle; do mv -f "${bin}" "${bin/-linux-mipsle/}"; done
107-
- go run build/ci.go archive -arch mipsle -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
107+
- go run build/ci.go archive -arch mipsle -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
108108

109109
- go run build/ci.go xgo --alltools -- --targets=linux/mips64 --ldflags '-extldflags "-static"' -v
110110
- for bin in build/bin/*-linux-mips64; do mv -f "${bin}" "${bin/-linux-mips64/}"; done
111-
- go run build/ci.go archive -arch mips64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
111+
- go run build/ci.go archive -arch mips64 -type tar -signer LINUX_SIGNING_KEY signify SIGNIFY_KEY -upload gethstore/builds
112112

113113
- go run build/ci.go xgo --alltools -- --targets=linux/mips64le --ldflags '-extldflags "-static"' -v
114114
- for bin in build/bin/*-linux-mips64le; do mv -f "${bin}" "${bin/-linux-mips64le/}"; done
115-
- go run build/ci.go archive -arch mips64le -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
115+
- go run build/ci.go archive -arch mips64le -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
116116

117117
# This builder does the Android Maven and Azure uploads
118118
- stage: build
119119
if: type = push
120120
os: linux
121-
dist: xenial
121+
dist: bionic
122122
addons:
123123
apt:
124124
packages:
125-
- oracle-java8-installer
126-
- oracle-java8-set-default
127-
language: android
128-
android:
129-
components:
130-
- platform-tools
131-
- tools
132-
- android-15
133-
- android-19
134-
- android-24
125+
- openjdk-8-jdk
135126
env:
136127
- azure-android
137128
- maven-android
138129
- GO111MODULE=on
139130
git:
140131
submodules: false # avoid cloning ethereum/tests
141132
before_install:
142-
- curl https://dl.google.com/go/go1.15.5.linux-amd64.tar.gz | tar -xz
133+
# Install Android and it's dependencies manually, Travis is stale
134+
- export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
135+
- curl https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest.zip -o android.zip
136+
- unzip -q android.zip -d $HOME/sdk && rm android.zip
137+
- mv $HOME/sdk/cmdline-tools $HOME/sdk/latest && mkdir $HOME/sdk/cmdline-tools && mv $HOME/sdk/latest $HOME/sdk/cmdline-tools
138+
- export PATH=$PATH:$HOME/sdk/cmdline-tools/latest/bin
139+
- export ANDROID_HOME=$HOME/sdk
140+
141+
- yes | sdkmanager --licenses >/dev/null
142+
- sdkmanager "platform-tools" "platforms;android-15" "platforms;android-19" "platforms;android-24" "ndk-bundle"
143+
144+
# Install Go to allow building with
145+
- curl https://dl.google.com/go/go1.16.linux-amd64.tar.gz | tar -xz
143146
- export PATH=`pwd`/go/bin:$PATH
144147
- export GOROOT=`pwd`/go
145148
- export GOPATH=$HOME/go
146149
script:
147150
# Build the Android archive and upload it to Maven Central and Azure
148-
- curl https://dl.google.com/android/repository/android-ndk-r19b-linux-x86_64.zip -o android-ndk-r19b.zip
149-
- unzip -q android-ndk-r19b.zip && rm android-ndk-r19b.zip
150-
- mv android-ndk-r19b $ANDROID_HOME/ndk-bundle
151-
152151
- mkdir -p $GOPATH/src/github.com/ethereum
153152
- ln -s `pwd` $GOPATH/src/github.com/ethereum/go-ethereum
154-
- go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
153+
- go run build/ci.go aar -signer ANDROID_SIGNING_KEY -signify SIGNIFY_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
155154

156155
# This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads
157156
- stage: build
158157
if: type = push
159158
os: osx
160-
go: 1.15.x
159+
go: 1.16.x
161160
env:
162161
- azure-osx
163162
- azure-ios
@@ -167,7 +166,7 @@ jobs:
167166
submodules: false # avoid cloning ethereum/tests
168167
script:
169168
- go run build/ci.go install -dlgo
170-
- go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
169+
- go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
171170

172171
# Build the iOS framework and upload it to CocoaPods and Azure
173172
- gem uninstall cocoapods -a -x
@@ -182,14 +181,14 @@ jobs:
182181

183182
# Workaround for https://github.com/golang/go/issues/23749
184183
- export CGO_CFLAGS_ALLOW='-fmodules|-fblocks|-fobjc-arc'
185-
- go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
184+
- go run build/ci.go xcode -signer IOS_SIGNING_KEY -signify SIGNIFY_KEY -deploy trunk -upload gethstore/builds
186185

187186
# These builders run the tests
188187
- stage: build
189188
os: linux
190189
arch: amd64
191-
dist: xenial
192-
go: 1.15.x
190+
dist: bionic
191+
go: 1.16.x
193192
env:
194193
- GO111MODULE=on
195194
script:
@@ -199,17 +198,17 @@ jobs:
199198
if: type = pull_request
200199
os: linux
201200
arch: arm64
202-
dist: xenial
203-
go: 1.15.x
201+
dist: bionic
202+
go: 1.16.x
204203
env:
205204
- GO111MODULE=on
206205
script:
207206
- go run build/ci.go test -coverage $TEST_PACKAGES
208207

209208
- stage: build
210209
os: linux
211-
dist: xenial
212-
go: 1.14.x
210+
dist: bionic
211+
go: 1.15.x
213212
env:
214213
- GO111MODULE=on
215214
script:
@@ -219,8 +218,8 @@ jobs:
219218
- stage: build
220219
if: type = cron
221220
os: linux
222-
dist: xenial
223-
go: 1.15.x
221+
dist: bionic
222+
go: 1.16.x
224223
env:
225224
- azure-purge
226225
- GO111MODULE=on

Makefile

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ifeq ($(OS),Linux)
2020
PROTOC_OS = linux
2121
endif
2222

23-
all: tg hack tester rpctest state pics rpcdaemon integration db-tools
23+
all: tg hack rpctest state pics rpcdaemon integration db-tools
2424

2525
docker:
2626
docker build -t turbo-geth:latest --build-arg git_commit='${GIT_COMMIT}' --build-arg git_branch='${GIT_BRANCH}' .
@@ -43,11 +43,6 @@ hack:
4343
@echo "Done building."
4444
@echo "Run \"$(GOBIN)/hack\" to launch hack."
4545

46-
tester:
47-
$(GOBUILD) -o $(GOBIN)/tester ./cmd/tester
48-
@echo "Done building."
49-
@echo "Run \"$(GOBIN)/tester\" to launch tester."
50-
5146
rpctest:
5247
$(GOBUILD) -o $(GOBIN)/rpctest ./cmd/rpctest
5348
@echo "Done building."
@@ -168,7 +163,6 @@ devtools:
168163

169164
bindings:
170165
PATH=$(GOBIN):$(PATH) go generate ./tests/contracts/
171-
PATH=$(GOBIN):$(PATH) go generate ./cmd/tester/contracts/
172166
PATH=$(GOBIN):$(PATH) go generate ./core/state/contracts/
173167

174168
grpc:
@@ -188,10 +182,6 @@ grpc:
188182
PATH=$(GOBIN):$(PATH) go generate ./turbo/shards
189183
PATH=$(GOBIN):$(PATH) go generate ./turbo/snapshotsync
190184

191-
192-
simulator-genesis:
193-
go run ./cmd/tester genesis > ./cmd/tester/simulator_genesis.json
194-
195185
prometheus:
196186
docker-compose up prometheus grafana
197187

SECURITY.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,29 @@
22

33
## Supported Versions
44

5-
Please see Releases. We recommend to use the most recent released version.
5+
Please see [Releases](https://github.com/ethereum/go-ethereum/releases). We recommend using the [most recently released version](https://github.com/ethereum/go-ethereum/releases/latest).
66

77
## Audit reports
88

99
Audit reports are published in the `docs` folder: https://github.com/ethereum/go-ethereum/tree/master/docs/audits
1010

11-
1211
| Scope | Date | Report Link |
1312
| ------- | ------- | ----------- |
1413
| `geth` | 20170425 | [pdf](https://github.com/ethereum/go-ethereum/blob/master/docs/audits/2017-04-25_Geth-audit_Truesec.pdf) |
1514
| `clef` | 20180914 | [pdf](https://github.com/ethereum/go-ethereum/blob/master/docs/audits/2018-09-14_Clef-audit_NCC.pdf) |
1615

17-
18-
1916
## Reporting a Vulnerability
2017

2118
**Please do not file a public ticket** mentioning the vulnerability.
2219

23-
To find out how to disclose a vulnerability in Ethereum visit [https://bounty.ethereum.org](https://bounty.ethereum.org) or email bounty@ethereum.org.
20+
To find out how to disclose a vulnerability in Ethereum visit [https://bounty.ethereum.org](https://bounty.ethereum.org) or email bounty@ethereum.org. Please read the [disclosure page](https://github.com/ethereum/go-ethereum/security/advisories?state=published) for more information about publically disclosed security vulnerabilities.
21+
22+
Use the built-in `geth version-check` feature to check whether the software is affected by any known vulnerability. This command will fetch the latest [`vulnerabilities.json`](https://geth.ethereum.org/docs/vulnerabilities/vulnerabilities.json) file which contains known security vulnerabilities concerning `geth`, and cross-check the data against its own version number.
2423

2524
The following key may be used to communicate sensitive information to developers.
2625

2726
Fingerprint: `AE96 ED96 9E47 9B00 84F3 E17F E88D 3334 FA5F 6A0A`
2827

29-
3028
```
3129
-----BEGIN PGP PUBLIC KEY BLOCK-----
3230
Version: GnuPG v1

accounts/abi/abi_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const jsondata = `
4343
{ "type" : "function", "name" : "uint64[2]", "inputs" : [ { "name" : "inputs", "type" : "uint64[2]" } ] },
4444
{ "type" : "function", "name" : "uint64[]", "inputs" : [ { "name" : "inputs", "type" : "uint64[]" } ] },
4545
{ "type" : "function", "name" : "int8", "inputs" : [ { "name" : "inputs", "type" : "int8" } ] },
46+
{ "type" : "function", "name" : "bytes32", "inputs" : [ { "name" : "inputs", "type" : "bytes32" } ] },
4647
{ "type" : "function", "name" : "foo", "inputs" : [ { "name" : "inputs", "type" : "uint32" } ] },
4748
{ "type" : "function", "name" : "bar", "inputs" : [ { "name" : "inputs", "type" : "uint32" }, { "name" : "string", "type" : "uint16" } ] },
4849
{ "type" : "function", "name" : "slice", "inputs" : [ { "name" : "inputs", "type" : "uint32[2]" } ] },
@@ -68,6 +69,7 @@ var (
6869
String, _ = NewType("string", "", nil)
6970
Bool, _ = NewType("bool", "", nil)
7071
Bytes, _ = NewType("bytes", "", nil)
72+
Bytes32, _ = NewType("bytes32", "", nil)
7173
Address, _ = NewType("address", "", nil)
7274
Uint64Arr, _ = NewType("uint64[]", "", nil)
7375
AddressArr, _ = NewType("address[]", "", nil)
@@ -98,6 +100,7 @@ var methods = map[string]Method{
98100
"uint64[]": NewMethod("uint64[]", "uint64[]", Function, "", false, false, []Argument{{"inputs", Uint64Arr, false}}, nil),
99101
"uint64[2]": NewMethod("uint64[2]", "uint64[2]", Function, "", false, false, []Argument{{"inputs", Uint64Arr2, false}}, nil),
100102
"int8": NewMethod("int8", "int8", Function, "", false, false, []Argument{{"inputs", Int8, false}}, nil),
103+
"bytes32": NewMethod("bytes32", "bytes32", Function, "", false, false, []Argument{{"inputs", Bytes32, false}}, nil),
101104
"foo": NewMethod("foo", "foo", Function, "", false, false, []Argument{{"inputs", Uint32, false}}, nil),
102105
"bar": NewMethod("bar", "bar", Function, "", false, false, []Argument{{"inputs", Uint32, false}, {"string", Uint16, false}}, nil),
103106
"slice": NewMethod("slice", "slice", Function, "", false, false, []Argument{{"inputs", Uint32Arr2, false}}, nil),

0 commit comments

Comments
 (0)