Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Upgrade] Go-Ethereum release v1.9.11 #1121

Merged
merged 147 commits into from
Feb 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
0676320
params: begin v1.9.9 release cycle
karalabe Nov 26, 2019
23c8c74
cmd: fix command help messages in modules (#20203)
zacscoding Nov 26, 2019
c4844e9
les: fix staticcheck warnings (#20371)
gballet Nov 27, 2019
7b189d6
core: fix staticcheck warnings (#20384)
gballet Nov 27, 2019
717f8a4
core/rawdb: fix reinit regression caused by the hash check PR
karalabe Nov 27, 2019
7800ba9
deps: update fastcache to 1.5.3
holiman Nov 27, 2019
58e33d9
Merge pull request #20403 from karalabe/fix-freezer-reinit
karalabe Nov 27, 2019
c9f28ca
go: update fastcache to 1.5.3 (#20404)
karalabe Nov 27, 2019
a91b704
consensus/ethash: refactor remote sealer (#20335)
fjl Nov 28, 2019
9a529d6
log: fix staticcheck warnings (#20388)
gballet Nov 28, 2019
08611cf
trie: remove dead code (#20405)
rjl493456442 Nov 28, 2019
1ff3d7c
cmd/faucet, cmd/geth: fix staticcheck warnings (#20374)
gballet Nov 29, 2019
e0bf5f0
internal: fix staticcheck warnings (#20380)
gballet Nov 29, 2019
54d332e
accounts/scwallet: fix staticcheck warnings (#20370)
gballet Nov 29, 2019
d556d39
internal/web3ext: add debug_accountRange (#20410)
xinluyin Nov 29, 2019
5cc6e7a
accounts/usbwallet: fix staticcheck warnings (#20372)
gballet Nov 29, 2019
fc7e0fe
core, miner: remove PostChainEvents (#19396)
rjl493456442 Nov 29, 2019
7ce7c39
accounts/abi/bind: fix destructive packing of *big.Int (#20412)
MariusVanDerWijden Dec 2, 2019
13ccf60
trie: track dirty cache metrics, track clean writes on commit
karalabe Dec 2, 2019
c2d65d3
Merge pull request #20415 from karalabe/trie-dirty-cache-metrics
karalabe Dec 2, 2019
6b6882f
params: update CHTs for v1.9.9 release
karalabe Dec 5, 2019
e78f631
Merge pull request #20428 from karalabe/cht-1.9.9
karalabe Dec 5, 2019
c9dce0b
p2p/enode: remove data race in sliceIter (#20421)
MariusVanDerWijden Dec 5, 2019
bc01593
consensus/ethash, params: eip-2384: bump difficulty bomb (#20347)
holiman Dec 6, 2019
0174499
params: release Geth v1.9.9
karalabe Dec 6, 2019
370cb95
params: begin v1.9.10 release cycle
karalabe Dec 6, 2019
4b40b53
miner: add dependency for stress tests (#20436)
pip1998 Dec 10, 2019
cecc723
tests/fuzzers: fuzzbuzz fuzzers for keystore, rlp, trie, whisper (#1…
holiman Dec 10, 2019
f383eaa
core: removed old invalid comment
MariusVanDerWijden Dec 10, 2019
b8bc9b3
Merge pull request #20444 from MariusVanDerWijden/patch-4
karalabe Dec 10, 2019
d90d1db
eth/filters: remove use of event.TypeMux for pending logs (#20312)
fjl Dec 10, 2019
191364c
p2p/dnsdisc: add enode.Iterator API (#20437)
fjl Dec 12, 2019
f51cf57
cmd/devp2p: implement AWS Route53 enrtree deployer (#20446)
fjl Dec 12, 2019
275cd49
cmd/abigen: Sanitize vyper's combined json names (#20419)
gballet Dec 16, 2019
c4b7fdd
eth, internal/web3ext: add optional first and last arguments to the …
ryanschneider Dec 17, 2019
49cf000
cmd/evm: Add --bench flag for benchmarking (#20330)
chfast Dec 18, 2019
6ae9dc1
[#20266] Fix bugs decoding integers and fixed bytes in indexed event …
shoenseiwaso Dec 18, 2019
93b1171
accounts/abi/backends/simulated: add more API methods (#5) (#20208)
gitteri Dec 20, 2019
a67fe48
Change file extension of the ./tests/fuzzers README (#20474)
aunyks Dec 20, 2019
3bb6815
les: do not disconnect another server (#20453)
zsfelfoldi Dec 25, 2019
b7cf41e
accounts/abi: fix method constant flag for solidity 6.0 (#20482)
Magicking Jan 6, 2020
2eeb8dd
rpc: add DialWebsocketWithDialer (#20471)
cpacia Jan 6, 2020
433937f
cmd/geth: fix forked exe leak in console tests (#20480)
gballet Jan 6, 2020
7a509b4
internal/ethapi: fix encoding of uncle headers and pending blocks (#2…
princesinha19 Jan 6, 2020
35f95ae
cmd/puppeth: change dashboard title to not use "testnet" (#20513)
anistark Jan 7, 2020
c6285e6
les/checkpointoracle: move oracle into its own package (#20508)
rjl493456442 Jan 7, 2020
4f7b7f8
add node.go unit test file node_test.go (#20028)
me020523 Jan 7, 2020
9e0f934
cmd/geth: update copyright year (#20512)
YoleYu Jan 7, 2020
50be790
README.md: Genoil fork has been discontinued (#20521)
MariusVanDerWijden Jan 7, 2020
a013f02
whisper/whisperv6: fix peer time.Ticker leak (#20520)
sxllwx Jan 7, 2020
a1bc0e3
eth: refactor creation of EthAPIBackend (#20476)
jgimeno Jan 7, 2020
c49a416
consensus/ethash: fix a typo and error message (#20503)
gballet Jan 7, 2020
8a63f7f
.travis.yml: use latest macOS 10.14 image (#20526)
fjl Jan 8, 2020
4d663d5
les: fix request serving metrics (#20507)
rjl493456442 Jan 8, 2020
0218d70
internal/testlog: print file+line number of log call in test log (#20…
fjl Jan 8, 2020
b211742
Revert "eth: refactor creation of EthAPIBackend (#20476)" (#20536)
karalabe Jan 9, 2020
fc39239
core/state: add more verbosity to panic
holiman Jan 10, 2020
b5c4ea5
Merge pull request #20540 from holiman/verbose_panic
karalabe Jan 10, 2020
8bd37a1
core: count tx size in slots, bump max size ot 4x32KB (#20352)
MichaelRiabzev-StarkWare Jan 10, 2020
a90cc66
eth: check propagated block malformation on receiption
karalabe Jan 13, 2020
e9e69d6
Merge pull request #20546 from karalabe/validate-block-broadcast
karalabe Jan 13, 2020
b2de0bd
core: set max tx size down to 2 slots (64KB)
holiman Jan 14, 2020
8592a57
Merge pull request #20555 from holiman/cripple_txsize
karalabe Jan 14, 2020
feda78e
build: remove env.sh (#20541)
fjl Jan 14, 2020
94e8418
build: attempt to fix debian build failure without GOPATH (#20561)
fjl Jan 15, 2020
8704e8a
build: fix makefile HOME reference (#20562)
fjl Jan 15, 2020
f20c8d4
eth: increase timeout to fix a spurious travis test failure (#20560)
holiman Jan 15, 2020
3e97b04
build: put GOPATH in /tmp on launchpad (#20564)
fjl Jan 16, 2020
9b32f59
travis, build: enable Ubuntu Focal and Go 1.13.6 on PPA
karalabe Jan 16, 2020
b3b8d36
Merge pull request #20570 from karalabe/ppa-focal-go-1.13.6
karalabe Jan 16, 2020
1ee754b
build: upgrade golangci to 1.22.2 (#20566)
gballet Jan 16, 2020
fcafa0b
p2p: wait for listener goroutines on shutdown (#20569)
fjl Jan 16, 2020
d5acc5e
p2p: ensure Server.loop is ticking even if discovery hangs (#20573)
fjl Jan 17, 2020
0af96d2
cmd/devp2p: submit Route53 changes in batches (#20524)
fjl Jan 17, 2020
770316d
core, light: write chain data in atomic way (#20287)
rjl493456442 Jan 17, 2020
9b09c0f
* trie: utilize callbacks instead of amassing lists in ref/unref (#20…
holiman Jan 17, 2020
92956e2
appveyor: bump Go to 1.13.6 on Windows
karalabe Jan 19, 2020
6d200ef
Merge pull request #20578 from karalabe/win-go-1.13.6
karalabe Jan 19, 2020
fcc84c3
travis: bump Android builder to Go 1.13.6
karalabe Jan 19, 2020
4c8fcd9
Merge pull request #20579 from karalabe/android-go-1.13.6
karalabe Jan 19, 2020
1f1cefc
params: update CHTs for v1.9.10 release
karalabe Jan 20, 2020
b88b463
core: fix chain indexer unit test (#20506)
rjl493456442 Jan 20, 2020
b4aa4a6
Merge pull request #20580 from karalabe/cht-1.9.10
karalabe Jan 20, 2020
58cf568
params: release Geth v1.9.10
karalabe Jan 20, 2020
ad2fc7c
params: begin Geth v1.9.11 release cycle
karalabe Jan 20, 2020
31baf3a
log, internal/debug: delete RotatingFileHandler (#20586)
fjl Jan 21, 2020
33c56eb
cmd: implement abidump (#19958)
holiman Jan 21, 2020
8a5c813
eth: fix comment typo in handler.go (#20575)
gballet Jan 23, 2020
0b284f6
cmd/geth/retesteth: use canon head instead of keeping alternate count…
holiman Jan 23, 2020
60deeb1
cmd/evm: accept --input for disasm command (#20548)
gballet Jan 27, 2020
7b68975
console, internal/jsre: use github.com/dop251/goja (#20470)
gballet Jan 27, 2020
44c365c
rpc: reset writeConn when conn is closed on readErr (#20414)
zzy96 Jan 27, 2020
a903912
rpc: check module availability at startup (#20597)
fjl Jan 28, 2020
594e038
signer/rules: use goja and remove otto (#20599)
gballet Jan 29, 2020
24cab2d
core/vm/runtime: fix typos in comment (#20608)
gballet Jan 30, 2020
3c776c7
retesteth: clean txpool on rewind, default dao support (#20596)
holiman Jan 31, 2020
15d0903
params: update bootnodes (#20610)
holiman Jan 31, 2020
4cc89a5
internal/build: don't crash in DownloadFile when offline (#20595)
fjl Feb 3, 2020
5a9c964
trie: separate hashes and committer, collapse on commit
holiman Feb 3, 2020
33791db
tracers: avoid panic on invalid arguments (#20612)
tintinweb Feb 4, 2020
058a4ac
core/evm: less iteration in blockhash (#20589)
holiman Feb 4, 2020
711ed74
cmd/geth: add 'dumpgenesis' command (#20191)
meowsbits Feb 4, 2020
a1313b5
trie: make hasher parallel when number of changes are large (#20488)
holiman Feb 4, 2020
976a0f5
cmd/devp2p: fix Route53 TXT record splitting (#20626)
fjl Feb 5, 2020
4a231cd
internal/ethapi: return non-null "number" for pending block (#20616)
holiman Feb 7, 2020
675f4e7
README.md: update evm usage example (#20635)
wolflo Feb 9, 2020
34bb132
graphql: add transaction signature values (#20623)
AmitBRD Feb 9, 2020
172f777
rpc: add error when call result parameter is not addressable (#20638)
adamschmideg Feb 11, 2020
8694d14
signer: add bytes32 as valid primitive (#20609)
chabashilah Feb 11, 2020
dcffb77
cmd/geth retesteth: add eth_getBlockByHash (#20621)
winsvega Feb 11, 2020
049e171
core, eth: implement eth/65 transaction fetcher
rjl493456442 Oct 28, 2019
c22fdec
common/mclock: add NewTimer and Timer.Reset (#20634)
fjl Feb 11, 2020
8045504
les: log disconnect reason when light server is not synced (#20643)
adamschmideg Feb 11, 2020
1821328
event: add missing unlock before panic (#20653)
Feb 12, 2020
46c4b69
accounts/abi/bind/backends: add support for historical state (#20644)
MariusVanDerWijden Feb 12, 2020
a9614c3
event, p2p/simulations/adapters: fix rare goroutine leaks (#20657)
Feb 12, 2020
5f2002b
accounts: add walletsNoLock to avoid double read lock (#20655)
Feb 12, 2020
90caa2c
p2p: new dial scheduler (#20592)
fjl Feb 13, 2020
9938d95
eth: rework tx fetcher to use O(1) ops + manage network requests
karalabe Jan 22, 2020
eddcecc
Merge pull request #20234 from rjl493456442/newtxhashes_2
karalabe Feb 13, 2020
38d1b0c
cmd/geth: enable DNS discovery by default (#20660)
fjl Feb 13, 2020
8556905
core: ensure state exists for prefetcher (#20627)
holiman Feb 14, 2020
37531b1
cmd/faucet: protect f.reqs with Rlock to prevent data race (#20669)
BurtonQin Feb 15, 2020
36a1e0b
eth: don't enforce minimum broadcast, fix broadcast test
karalabe Feb 17, 2020
fef8c98
travis, appveyor, build: bump builder Go to 1.13.8
karalabe Feb 17, 2020
26284ec
Merge pull request #20681 from karalabe/go1.13.8
karalabe Feb 17, 2020
ac72787
p2p: remove MeteredPeerEvent (#20679)
fjl Feb 17, 2020
1c4c486
cmd/ethkey: speed up test by using weaker scrypt parameters (#20680)
fjl Feb 17, 2020
c211798
Merge pull request #20678 from karalabe/broadcast-sqrt-proper
karalabe Feb 17, 2020
57d4898
p2p/dnsdisc: re-check tree root when leaf resolution fails (#20682)
fjl Feb 17, 2020
1b9c5b3
all: fix goroutine leaks in unit tests by adding 1-elem channel buffe…
BurtonQin Feb 17, 2020
91b2289
rpc: remove startup error for invalid modules, log it instead (#20684)
fjl Feb 17, 2020
4f55e24
params: update CHTs for the v1.9.11 release
karalabe Feb 18, 2020
05ccbb5
Merge pull request #20687 from karalabe/cht-1.9.11
karalabe Feb 18, 2020
dae3aee
les: add bootstrap nodes as initial discoveries (#20688)
fjl Feb 18, 2020
6a62fe3
params: release Geth v1.9.11 stable
karalabe Feb 18, 2020
5b91325
Merge branch 'geth_v1.9.11' into quorum-geth-1.9.11-upgrade
Aug 27, 2020
9f2254b
upgrade 1.9.8 to 1.9.11
Aug 27, 2020
eb2b72b
add make bootnode
Aug 28, 2020
d309828
Merge branch 'upgrade/quorum-geth-1.9.8' into upgrade/quorum-geth-1.9.11
ricardolyn Jan 14, 2021
0392695
fix(unit test): tx pool tests to use the quourum chain config. refact…
ricardolyn Jan 14, 2021
c8d63d1
fix: set the max gas to 10m on tx_pool test to match what is on geth
ricardolyn Jan 15, 2021
b4bd160
Merge branch 'master' into upgrade/quorum-geth-1.9.11
ricardolyn Feb 3, 2021
3a5ef1d
fix: add stub method to the dummy chain for test
ricardolyn Feb 3, 2021
20b9e79
lint: upgraded golangci to version 1.27.0, same version as used by go…
ricardolyn Feb 3, 2021
d929a3f
lint:fix lint issues
ricardolyn Feb 3, 2021
54612f5
fix: adding back missing code in eth/backend.go that was added in PR …
ricardolyn Feb 3, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ run:
# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true
skip-files:
- core/genesis_alloc.go

linters:
disable-all: true
Expand All @@ -30,6 +32,10 @@ linters-settings:
min-occurrences: 6 # minimum number of occurrences

issues:
# Quorum - Disabling check for "S1039: unnecessary use of fmt.Sprintf (gosimple)" until we upgrade to geth 1.9.20 and have the lint fixes that also were applied in go-ethereum, as it was creating many necessary changes in geth codebase
exclude:
- S1039
# End Quorum
exclude-rules:
- path: crypto/blake2b/
linters:
Expand All @@ -43,3 +49,6 @@ issues:
- path: core/vm/instructions_test.go
linters:
- goconst
- path: cmd/faucet/
linters:
- deadcode
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:

- stage: build
os: osx
osx_image: xcode11.3
go: 1.13.x
script:
- echo "Increase the maximum number of open file descriptors on macOS"
Expand Down Expand Up @@ -174,7 +175,7 @@ jobs:
git:
submodules: false # avoid cloning ethereum/tests
before_install:
- curl https://dl.google.com/go/go1.13.linux-amd64.tar.gz | tar -xz
- curl https://dl.google.com/go/go1.13.8.linux-amd64.tar.gz | tar -xz
- export PATH=`pwd`/go/bin:$PATH
- export GOROOT=`pwd`/go
- export GOPATH=$HOME/go
Expand Down
46 changes: 23 additions & 23 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,39 @@

GOBIN = ./build/bin
GO ?= latest
GORUN = env GO111MODULE=on go run

geth:
build/env.sh go run build/ci.go install ./cmd/geth
$(GORUN) build/ci.go install ./cmd/geth
@echo "Done building."
@echo "Run \"$(GOBIN)/geth\" to launch geth."

bootnode:
build/env.sh go run build/ci.go install ./cmd/bootnode
$(GORUN) build/ci.go install ./cmd/bootnode
@echo "Done building."
@echo "Run \"$(GOBIN)/bootnode\" to launch bootnode."


all:
build/env.sh go run build/ci.go install
$(GORUN) build/ci.go install

android:
build/env.sh go run build/ci.go aar --local
$(GORUN) build/ci.go aar --local
@echo "Done building."
@echo "Import \"$(GOBIN)/geth.aar\" to use the library."

ios:
build/env.sh go run build/ci.go xcode --local
$(GORUN) build/ci.go xcode --local
@echo "Done building."
@echo "Import \"$(GOBIN)/Geth.framework\" to use the library."

test: all
build/env.sh go run build/ci.go test
$(GORUN) build/ci.go test

lint: ## Run linters.
build/env.sh go run build/ci.go lint
$(GORUN) build/ci.go lint

clean:
go clean -cache
env GO111MODULE=on go clean -cache
rm -fr build/_workspace/pkg/ $(GOBIN)/*

# The devtools target installs tools required for 'go generate'.
Expand All @@ -69,12 +69,12 @@ geth-linux: geth-linux-386 geth-linux-amd64 geth-linux-arm geth-linux-mips64 get
@ls -ld $(GOBIN)/geth-linux-*

geth-linux-386:
build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/386 -v ./cmd/geth
$(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/386 -v ./cmd/geth
@echo "Linux 386 cross compilation done:"
@ls -ld $(GOBIN)/geth-linux-* | grep 386

geth-linux-amd64:
build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/amd64 -v ./cmd/geth
$(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/amd64 -v ./cmd/geth
@echo "Linux amd64 cross compilation done:"
@ls -ld $(GOBIN)/geth-linux-* | grep amd64

Expand All @@ -83,42 +83,42 @@ geth-linux-arm: geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-ar
@ls -ld $(GOBIN)/geth-linux-* | grep arm

geth-linux-arm-5:
build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/arm-5 -v ./cmd/geth
$(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/arm-5 -v ./cmd/geth
@echo "Linux ARMv5 cross compilation done:"
@ls -ld $(GOBIN)/geth-linux-* | grep arm-5

geth-linux-arm-6:
build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/arm-6 -v ./cmd/geth
$(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/arm-6 -v ./cmd/geth
@echo "Linux ARMv6 cross compilation done:"
@ls -ld $(GOBIN)/geth-linux-* | grep arm-6

geth-linux-arm-7:
build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/arm-7 -v ./cmd/geth
$(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/arm-7 -v ./cmd/geth
@echo "Linux ARMv7 cross compilation done:"
@ls -ld $(GOBIN)/geth-linux-* | grep arm-7

geth-linux-arm64:
build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/arm64 -v ./cmd/geth
$(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/arm64 -v ./cmd/geth
@echo "Linux ARM64 cross compilation done:"
@ls -ld $(GOBIN)/geth-linux-* | grep arm64

geth-linux-mips:
build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/mips --ldflags '-extldflags "-static"' -v ./cmd/geth
$(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/mips --ldflags '-extldflags "-static"' -v ./cmd/geth
@echo "Linux MIPS cross compilation done:"
@ls -ld $(GOBIN)/geth-linux-* | grep mips

geth-linux-mipsle:
build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/mipsle --ldflags '-extldflags "-static"' -v ./cmd/geth
$(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/mipsle --ldflags '-extldflags "-static"' -v ./cmd/geth
@echo "Linux MIPSle cross compilation done:"
@ls -ld $(GOBIN)/geth-linux-* | grep mipsle

geth-linux-mips64:
build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/mips64 --ldflags '-extldflags "-static"' -v ./cmd/geth
$(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/mips64 --ldflags '-extldflags "-static"' -v ./cmd/geth
@echo "Linux MIPS64 cross compilation done:"
@ls -ld $(GOBIN)/geth-linux-* | grep mips64

geth-linux-mips64le:
build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=linux/mips64le --ldflags '-extldflags "-static"' -v ./cmd/geth
$(GORUN) build/ci.go xgo -- --go=$(GO) --targets=linux/mips64le --ldflags '-extldflags "-static"' -v ./cmd/geth
@echo "Linux MIPS64le cross compilation done:"
@ls -ld $(GOBIN)/geth-linux-* | grep mips64le

Expand All @@ -127,12 +127,12 @@ geth-darwin: geth-darwin-386 geth-darwin-amd64
@ls -ld $(GOBIN)/geth-darwin-*

geth-darwin-386:
build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=darwin/386 -v ./cmd/geth
$(GORUN) build/ci.go xgo -- --go=$(GO) --targets=darwin/386 -v ./cmd/geth
@echo "Darwin 386 cross compilation done:"
@ls -ld $(GOBIN)/geth-darwin-* | grep 386

geth-darwin-amd64:
build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=darwin/amd64 -v ./cmd/geth
$(GORUN) build/ci.go xgo -- --go=$(GO) --targets=darwin/amd64 -v ./cmd/geth
@echo "Darwin amd64 cross compilation done:"
@ls -ld $(GOBIN)/geth-darwin-* | grep amd64

Expand All @@ -141,11 +141,11 @@ geth-windows: geth-windows-386 geth-windows-amd64
@ls -ld $(GOBIN)/geth-windows-*

geth-windows-386:
build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=windows/386 -v ./cmd/geth
$(GORUN) build/ci.go xgo -- --go=$(GO) --targets=windows/386 -v ./cmd/geth
@echo "Windows 386 cross compilation done:"
@ls -ld $(GOBIN)/geth-windows-* | grep 386

geth-windows-amd64:
build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=windows/amd64 -v ./cmd/geth
$(GORUN) build/ci.go xgo -- --go=$(GO) --targets=windows/amd64 -v ./cmd/geth
@echo "Windows amd64 cross compilation done:"
@ls -ld $(GOBIN)/geth-windows-* | grep amd64
16 changes: 9 additions & 7 deletions accounts/abi/abi.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,13 @@ func (abi ABI) UnpackIntoMap(v map[string]interface{}, name string, data []byte)
// UnmarshalJSON implements json.Unmarshaler interface
func (abi *ABI) UnmarshalJSON(data []byte) error {
var fields []struct {
Type string
Name string
Constant bool
Anonymous bool
Inputs []Argument
Outputs []Argument
Type string
Name string
Constant bool
StateMutability string
Anonymous bool
Inputs []Argument
Outputs []Argument
}
if err := json.Unmarshal(data, &fields); err != nil {
return err
Expand All @@ -134,10 +135,11 @@ func (abi *ABI) UnmarshalJSON(data []byte) error {
name = fmt.Sprintf("%s%d", field.Name, idx)
_, ok = abi.Methods[name]
}
isConst := field.Constant || field.StateMutability == "pure" || field.StateMutability == "view"
abi.Methods[name] = Method{
Name: name,
RawName: field.Name,
Const: field.Constant,
Const: isConst,
Inputs: field.Inputs,
Outputs: field.Outputs,
}
Expand Down
Loading