Skip to content

Commit bc6d410

Browse files
authored
Merge pull request #1219 from quorumbot/upgrade/go-ethereum/v1.9.24-2021621140614
[Upgrade] Go-Ethereum release v1.9.24
2 parents ce32f98 + 35b0aa4 commit bc6d410

File tree

100 files changed

+4785
-1117
lines changed

Some content is hidden

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

100 files changed

+4785
-1117
lines changed

.travis.yml

Lines changed: 40 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -24,69 +24,6 @@ jobs:
2424
script:
2525
- go run build/ci.go lint
2626

27-
- stage: build
28-
os: linux
29-
dist: xenial
30-
go: 1.13.x
31-
env:
32-
- GO111MODULE=on
33-
script:
34-
- go run build/ci.go install
35-
- go run build/ci.go test -coverage $TEST_PACKAGES
36-
37-
- stage: build
38-
os: linux
39-
dist: xenial
40-
go: 1.14.x
41-
env:
42-
- GO111MODULE=on
43-
script:
44-
- go run build/ci.go install
45-
- go run build/ci.go test -coverage $TEST_PACKAGES
46-
47-
# These are the latest Go versions.
48-
- stage: build
49-
os: linux
50-
arch: amd64
51-
dist: xenial
52-
go: 1.15.x
53-
env:
54-
- GO111MODULE=on
55-
script:
56-
- go run build/ci.go install
57-
- go run build/ci.go test -coverage $TEST_PACKAGES
58-
59-
- stage: build
60-
if: type = pull_request
61-
os: linux
62-
arch: arm64
63-
dist: xenial
64-
go: 1.15.x
65-
env:
66-
- GO111MODULE=on
67-
script:
68-
- go run build/ci.go install
69-
- go run build/ci.go test -coverage $TEST_PACKAGES
70-
71-
- stage: build
72-
os: osx
73-
osx_image: xcode11.3
74-
go: 1.15.x
75-
env:
76-
- GO111MODULE=on
77-
script:
78-
- echo "Increase the maximum number of open file descriptors on macOS"
79-
- NOFILE=20480
80-
- sudo sysctl -w kern.maxfiles=$NOFILE
81-
- sudo sysctl -w kern.maxfilesperproc=$NOFILE
82-
- sudo launchctl limit maxfiles $NOFILE $NOFILE
83-
- sudo launchctl limit maxfiles
84-
- ulimit -S -n $NOFILE
85-
- ulimit -n
86-
- unset -f cd # workaround for https://github.com/travis-ci/travis-ci/issues/8703
87-
- go run build/ci.go install
88-
- go run build/ci.go test -coverage $TEST_PACKAGES
89-
9027
# This builder does the Ubuntu PPA upload
9128
- stage: build
9229
if: type = push
@@ -109,7 +46,7 @@ jobs:
10946
- python-paramiko
11047
script:
11148
- echo '|1|7SiYPr9xl3uctzovOTj4gMwAC1M=|t6ReES75Bo/PxlOPJ6/GsGbTrM0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0aKz5UTUndYgIGG7dQBV+HaeuEZJ2xPHo2DS2iSKvUL4xNMSAY4UguNW+pX56nAQmZKIZZ8MaEvSj6zMEDiq6HFfn5JcTlM80UwlnyKe8B8p7Nk06PPQLrnmQt5fh0HmEcZx+JU9TZsfCHPnX7MNz4ELfZE6cFsclClrKim3BHUIGq//t93DllB+h4O9LHjEUsQ1Sr63irDLSutkLJD6RXchjROXkNirlcNVHH/jwLWR5RcYilNX7S5bIkK8NlWPjsn/8Ua5O7I9/YoE97PpO6i73DTGLh5H9JN/SITwCKBkgSDWUt61uPK3Y11Gty7o2lWsBjhBUm2Y38CBsoGmBw==' >> ~/.ssh/known_hosts
112-
- go run build/ci.go debsrc -goversion 1.15 -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <[email protected]>"
49+
- go run build/ci.go debsrc -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <[email protected]>"
11350

11451
# This builder does the Linux Azure uploads
11552
- stage: build
@@ -129,22 +66,22 @@ jobs:
12966
- gcc-multilib
13067
script:
13168
# Build for the primary platforms that Trusty can manage
132-
- go run build/ci.go install
69+
- go run build/ci.go install -dlgo
13370
- go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
134-
- go run build/ci.go install -arch 386
71+
- go run build/ci.go install -dlgo -arch 386
13572
- go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
13673

13774
# Switch over GCC to cross compilation (breaks 386, hence why do it here only)
13875
- 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
13976
- sudo ln -s /usr/include/asm-generic /usr/include/asm
14077

141-
- GOARM=5 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc
78+
- GOARM=5 go run build/ci.go install -dlgo -arch arm -cc arm-linux-gnueabi-gcc
14279
- GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
143-
- GOARM=6 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc
80+
- GOARM=6 go run build/ci.go install -dlgo -arch arm -cc arm-linux-gnueabi-gcc
14481
- GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
145-
- GOARM=7 go run build/ci.go install -arch arm -cc arm-linux-gnueabihf-gcc
82+
- GOARM=7 go run build/ci.go install -dlgo -arch arm -cc arm-linux-gnueabihf-gcc
14683
- GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
147-
- go run build/ci.go install -arch arm64 -cc aarch64-linux-gnu-gcc
84+
- go run build/ci.go install -dlgo -arch arm64 -cc aarch64-linux-gnu-gcc
14885
- go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
14986

15087
# This builder does the Linux Azure MIPS xgo uploads
@@ -202,7 +139,7 @@ jobs:
202139
git:
203140
submodules: false # avoid cloning ethereum/tests
204141
before_install:
205-
- curl https://dl.google.com/go/go1.15.linux-amd64.tar.gz | tar -xz
142+
- curl https://dl.google.com/go/go1.15.5.linux-amd64.tar.gz | tar -xz
206143
- export PATH=`pwd`/go/bin:$PATH
207144
- export GOROOT=`pwd`/go
208145
- export GOPATH=$HOME/go
@@ -229,7 +166,7 @@ jobs:
229166
git:
230167
submodules: false # avoid cloning ethereum/tests
231168
script:
232-
- go run build/ci.go install
169+
- go run build/ci.go install -dlgo
233170
- go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
234171

235172
# Build the iOS framework and upload it to CocoaPods and Azure
@@ -247,6 +184,37 @@ jobs:
247184
- export CGO_CFLAGS_ALLOW='-fmodules|-fblocks|-fobjc-arc'
248185
- go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
249186

187+
# These builders run the tests
188+
- stage: build
189+
os: linux
190+
arch: amd64
191+
dist: xenial
192+
go: 1.15.x
193+
env:
194+
- GO111MODULE=on
195+
script:
196+
- go run build/ci.go test -coverage $TEST_PACKAGES
197+
198+
- stage: build
199+
if: type = pull_request
200+
os: linux
201+
arch: arm64
202+
dist: xenial
203+
go: 1.15.x
204+
env:
205+
- GO111MODULE=on
206+
script:
207+
- go run build/ci.go test -coverage $TEST_PACKAGES
208+
209+
- stage: build
210+
os: linux
211+
dist: xenial
212+
go: 1.14.x
213+
env:
214+
- GO111MODULE=on
215+
script:
216+
- go run build/ci.go test -coverage $TEST_PACKAGES
217+
250218
# This builder does the Azure archive purges to avoid accumulating junk
251219
- stage: build
252220
if: type = cron

accounts/abi/bind/base.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,10 @@ func (c *BoundContract) Call(opts *CallOpts, results *[]interface{}, method stri
163163
}
164164
} else {
165165
output, err = c.caller.CallContract(ctx, msg, opts.BlockNumber)
166-
if err == nil && len(output) == 0 {
166+
if err != nil {
167+
return err
168+
}
169+
if len(output) == 0 {
167170
// Make sure we have a contract to operate on, and bail out otherwise.
168171
if code, err = c.caller.CodeAt(ctx, c.address, opts.BlockNumber); err != nil {
169172
return err

accounts/usbwallet/ledger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func (w *ledgerDriver) SignTx(path accounts.DerivationPath, tx *types.Transactio
162162
return common.Address{}, nil, accounts.ErrWalletClosed
163163
}
164164
// Ensure the wallet is capable of signing the given transaction
165-
if chainID != nil && w.version[0] <= 1 && w.version[2] <= 2 {
165+
if chainID != nil && w.version[0] <= 1 && w.version[1] <= 0 && w.version[2] <= 2 {
166166
//lint:ignore ST1005 brand name displayed on the console
167167
return common.Address{}, nil, fmt.Errorf("Ledger v%d.%d.%d doesn't support signing this transaction, please update to v1.0.3 at least", w.version[0], w.version[1], w.version[2])
168168
}

appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ environment:
2424
install:
2525
- git submodule update --init
2626
- rmdir C:\go /s /q
27-
- appveyor DownloadFile https://dl.google.com/go/go1.15.windows-%GETH_ARCH%.zip
28-
- 7z x go1.15.windows-%GETH_ARCH%.zip -y -oC:\ > NUL
27+
- appveyor DownloadFile https://dl.google.com/go/go1.15.5.windows-%GETH_ARCH%.zip
28+
- 7z x go1.15.5.windows-%GETH_ARCH%.zip -y -oC:\ > NUL
2929
- go version
3030
- gcc --version
3131

3232
build_script:
33-
- go run build\ci.go install
33+
- go run build\ci.go install -dlgo
3434

3535
after_build:
3636
- go run build\ci.go archive -type zip -signer WINDOWS_SIGNING_KEY -upload gethstore/builds

build/checksums.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# This file contains sha256 checksums of optional build dependencies.
22

3-
69438f7ed4f532154ffaf878f3dfd83747e7a00b70b3556eddabf7aaee28ac3a go1.15.src.tar.gz
3+
c1076b90cf94b73ebed62a81d802cd84d43d02dea8c07abdc922c57a071c84f1 go1.15.5.src.tar.gz
4+
359a4334b8c8f5e3067e5a76f16419791ac3fef4613d8e8e1eac0b9719915f6d go1.15.5.darwin-amd64.tar.gz
5+
4c8179d406136979724c71732009c7e2e7c794dbeaaa2a043c00da34d4be0559 go1.15.5.linux-386.tar.gz
6+
9a58494e8da722c3aef248c9227b0e9c528c7318309827780f16220998180a0d go1.15.5.linux-amd64.tar.gz
7+
a72a0b036beb4193a0214bca3fca4c5d68a38a4ccf098c909f7ce8bf08567c48 go1.15.5.linux-arm64.tar.gz
8+
5ea6456620d3efed5dda99238c7f23866eafdd915e5348736e631bc283c0238a go1.15.5.linux-armv6l.tar.gz
9+
d812436c7e3482ba3c97172edf26afaf35aca60a5621ff4a5f6a08386505ab9c go1.15.5.windows-386.zip
10+
1d24be3a200201a74be25e4134fbec467750e834e84e9c7789a9fc13248c5507 go1.15.5.windows-amd64.zip
411

512
d998a84eea42f2271aca792a7b027ca5c1edfcba229e8e5a844c9ac3f336df35 golangci-lint-1.27.0-linux-armv7.tar.gz
613
bf781f05b0d393b4bf0a327d9e62926949a4f14d7774d950c4e009fc766ed1d4 golangci-lint.exe-1.27.0-windows-amd64.zip

0 commit comments

Comments
 (0)