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.10.0 #1249

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
315 commits
Select commit Hold shift + click to select a range
efe6dd2
consensus/ethash: implement faster difficulty calculators (#21976)
holiman Dec 11, 2020
c49aae9
consensus: refactor FinalizeAndAssemble to use Finalize (#21993)
Dec 11, 2020
4d48980
core, eth, les: implement unclean-shutdown marker (#21893)
holiman Dec 11, 2020
38c1d59
abi/bind: fix error-handling in generated wrappers for functions retu…
connorwstein Dec 12, 2020
00d10e6
cmd/abigen: clarify abigen alias flag usage (#21875)
huahuayu Dec 12, 2020
017831d
core, eth: split eth package, implement snap protocol (#21482)
karalabe Dec 14, 2020
4859929
cmd/geth: fixed parallelization flaw in account import test (#22002)
MariusVanDerWijden Dec 14, 2020
0fe66f8
eth/protocols/eth: remove magic numbers in test (#21999)
Mr-Leshiy Dec 14, 2020
8cde296
eth, core: speed up some tests (#22000)
holiman Dec 15, 2020
c7f2536
les: les/4 minimalistic version (#21909)
zsfelfoldi Dec 15, 2020
3c46f55
cmd/faucet: sort requests by newest first (#22018)
MariusVanDerWijden Dec 17, 2020
c5a3ffa
eth/download/statesync : optimize to avoid a copy in state sync hashi…
ucwong Dec 21, 2020
61469cf
eth/downloader: fix typo in comment (#22019)
ucwong Dec 21, 2020
158f72c
internal/ethapi: restore net_version RPC method (#22061)
MariusVanDerWijden Dec 23, 2020
b9012a0
common,crypto: move fuzzers out of core (#22029)
holiman Dec 23, 2020
25c0bd9
README.md: update Travis badge (#22079)
Krinkle Dec 27, 2020
9c6b5b9
eth, eth/tracers: include intrinsic gas in calltracer, expose for all…
s1na Dec 27, 2020
b13e9c4
tests/fuzzers: fix false positive in bitutil fuzzer (#22076)
holiman Dec 27, 2020
2f81006
cmd/geth: replace wiki links with new doc pages (#22071)
suriyaa Dec 27, 2020
0a09a39
eth/filters: replace wiki links with new doc pages (#22070)
suriyaa Dec 27, 2020
ab0979f
signer: docs - replace wiki links with new doc pages (#22069)
suriyaa Dec 27, 2020
653e8b9
eth/downloader: remove unnecessary condition (#22052)
jeongkyun-oh Dec 27, 2020
c17a773
docs: replace wiki links with new doc pages in readme.md (#22065) (#2…
suriyaa Dec 27, 2020
a425a47
core/rawdb, eth/protocols : Method name typo fix (#22026)
ucwong Dec 27, 2020
0a3993c
accounts/abi/bind: fix erroneous test (#22053)
Dec 30, 2020
167ff56
core/state/snapshot: gethring -> gathering typo (#22104)
ehnuje Jan 4, 2021
f83fc30
cmd/geth: update copyright year (#22099)
vieyang Jan 4, 2021
47820ef
.github: Replace wiki links with new doc pages (#22065) (#22068)
suriyaa Jan 4, 2021
5c2a7ce
node: rename startNetworking to openEndpoints (#22105)
renaynay Jan 4, 2021
1951e20
SECURITY.md: link to release page (#22067)
suriyaa Jan 4, 2021
e4571d8
cmd: support v1.1 Twitter API in faucet, fix puppeth
karalabe Jan 4, 2021
6ada9f0
Merge pull request #22107 from karalabe/faucet-twitter
karalabe Jan 5, 2021
9584f56
miner: avoid sleeping in miner (#22108)
holiman Jan 5, 2021
664903d
cmd/geth: usb is off by default (#21984)
gballet Jan 5, 2021
eb2a1df
graphql: use a decimal representation for gas limit and gas used (#21…
atoulme Jan 5, 2021
4714ce9
cmd/geth: added --mainnet flag (#21932)
MariusVanDerWijden Jan 5, 2021
9ba306d
common/compiler: fix parsing of solc output with solidity v.0.8.0 (#2…
MariusVanDerWijden Jan 5, 2021
6184542
eth/downloader: enhanced test cases for downloader queue (#22114)
jeongkyun-oh Jan 5, 2021
83d317c
cmd/utils, eth/downloader: minor snap nitpicks
karalabe Jan 6, 2021
d667ee2
crypto: fix ineffectual assignments (#22124)
MariusVanDerWijden Jan 6, 2021
072fd96
graphql: return decimal for `estimateGas` and `cumulativeGas` queries…
renaynay Jan 6, 2021
d2e1b17
snapshot, trie: fixed typos, mostly in snapshot pkg (#22133)
ehnuje Jan 7, 2021
8bd8e1b
Merge pull request #22122 from karalabe/snapshot-polishes
karalabe Jan 7, 2021
44208d9
cmd/faucet: fix websocket race regression after switching to gorilla
karalabe Jan 7, 2021
58b9db5
eth/protocols/snap: track reverts when peer rejects request (#22016)
holiman Jan 7, 2021
38310f9
Merge pull request #22136 from karalabe/faucet-websocket-fix
karalabe Jan 7, 2021
4bb5c6c
eth/protocols/snap: speed up hash checks (#22023)
holiman Jan 7, 2021
3c6665e
cmd/faucet: switch Facebook auth over to mobile site
karalabe Jan 7, 2021
d395289
Merge pull request #22137 from karalabe/faucet-fb-fix
karalabe Jan 7, 2021
165f53f
les: remove transaction propagation limits (#22125)
rjl493456442 Jan 7, 2021
6b88ab7
cmd/faucet: fix nonce-gap problem (#22145)
holiman Jan 8, 2021
889f564
ethclient: better test suite for ethclient package (#22127)
MariusVanDerWijden Jan 8, 2021
89030ec
eth/downloader: fix race condition in tests (#22140)
ziogaschr Jan 9, 2021
5a1b384
core: persist bad blocks (#21827)
rjl493456442 Jan 10, 2021
ab5e3f4
common/prque: pull in tests and benchmarks from upstream
karalabe Jan 11, 2021
79e2174
Merge pull request #22157 from karalabe/prque-tests
karalabe Jan 11, 2021
49c2816
eth: improve log message (#22146)
MariusVanDerWijden Jan 11, 2021
39b3b8f
graphql: fix issue with unmarshalling int32 into `Long` type #22153
renaynay Jan 11, 2021
984e752
eth: return error from eth_chainID during sync before EIP-155 activat…
renaynay Jan 12, 2021
23f837c
cmd/utils: avoid making console preloads absolute (#22109)
meowsbits Jan 12, 2021
93a89b2
go.mod: use github.com/holiman/bloomfilter/v2 (#22044)
holiman Jan 12, 2021
c7a6be1
cmd/utils: don't enumerate USB unless --usb is set (#22130)
gballet Jan 13, 2021
c940817
tests: update the reference tests (#22009)
holiman Jan 13, 2021
6296211
graphql: fix spurious error in test (#22164)
holiman Jan 13, 2021
2aaff0a
consensus/ethash: increase seal timeout for tests (#22162)
MariusVanDerWijden Jan 13, 2021
96157a8
graphql: fix spurious travis failure (#22166)
holiman Jan 13, 2021
1296908
cmd/faucet: update the embedded website asset
karalabe Jan 14, 2021
d13c59f
Merge pull request #22169 from karalabe/faucet-regen
karalabe Jan 14, 2021
c4deebb
core/state/snapshot: add generation logs to storage too
karalabe Jan 15, 2021
3944976
Merge pull request #22177 from karalabe/snapshot-storage-logs
karalabe Jan 15, 2021
8d62ee6
les: don't drop sentTo for normal cases (#22048)
rjl493456442 Jan 15, 2021
c76573a
eth/protocols/eth: fix slice resize flaw (#22181)
dadeg Jan 16, 2021
034ecc3
les: remove useless protocol defines (#22115)
rjl493456442 Jan 16, 2021
3981822
tests/fuzzers/abi: better test generation (#22158)
MariusVanDerWijden Jan 18, 2021
10555d4
cmd/geth: dump config for metrics (#22083)
MariusVanDerWijden Jan 18, 2021
5e9f5ca
core/state/snapshot: write snapshot generator in batch (#22163)
rjl493456442 Jan 18, 2021
24c1e30
cmd/geth: graceful shutdown if disk is full (#22103)
alex347 Jan 19, 2021
45cb1a5
eth, les: add new config field SyncFromCheckpoint (#22123)
rjl493456442 Jan 19, 2021
d1301eb
oss-fuzz: fix abi fuzzer (#22199)
MariusVanDerWijden Jan 20, 2021
7da8f75
go.mod: upgrade golang-lru (#22134)
ucwong Jan 20, 2021
81bf9f9
downloader: extract findAncestor search functions (#21744)
meowsbits Jan 20, 2021
1e1865b
core: implement background trie prefetcher
holiman Feb 5, 2020
42f9f1f
core/state: convert prefetcher to concurrent per-trie loader
karalabe Jan 8, 2021
ddadc3d
Merge pull request #21047 from holiman/improve_updates_2
karalabe Jan 20, 2021
c4307a9
eth/filters: fix potential deadlock in filter timeout loop (#22178)
s1na Jan 21, 2021
231040c
event: add ResubscribeErr (#22191)
lukasz-zimnoch Jan 21, 2021
9e1bd0f
trie: fix range prover (#22210)
rjl493456442 Jan 22, 2021
f26c19c
common/mclock: remove dependency on github.com/aristanetworks/goarist…
fjl Jan 22, 2021
db35d77
cmd, geth: CLI help fixes (#22220)
ligi Jan 24, 2021
3708454
cmd, geth: CLI help fixes (#22220)
ligi Jan 24, 2021
797b081
eth/protocols/snap: snap sync testing (#22179)
holiman Jan 25, 2021
1770fe7
go.mod: update dependencies (#22216)
MariusVanDerWijden Jan 25, 2021
c0862f4
graphql: change receipt status to decimal instead of hex (#22187)
renaynay Jan 25, 2021
59a7913
go.mod: upgrade github.com/huin/goupnp (#22227)
ucwong Jan 25, 2021
04a7226
snapshot: merge loops for better performance (#22160)
ehnuje Jan 25, 2021
49cdcf5
core: reset to genesis when middle block is missing (#22135)
rjl493456442 Jan 25, 2021
adf130d
eth/tracers: move tracing APIs into eth/tracers (#22161)
rjl493456442 Jan 25, 2021
d2779ed
eth, p2p: reserve half peer slots for snap peers during snap sync (#2…
holiman Jan 25, 2021
7202b41
tests/fuzzers/abi: fixed one-off panic with int.Min64 value (#22233)
MariusVanDerWijden Jan 25, 2021
573f373
internal/ethapi: print tx details when submitting (#22170)
karalabe Jan 26, 2021
14d4954
core/state: fix panic in state dumping (#22225)
holiman Jan 26, 2021
6816182
core: speed up header import (#21967)
holiman Jan 26, 2021
ad038b6
accounts/scwallet: use go-ethereum crypto instead of go-ecdh (#22212)
fjl Jan 26, 2021
9c57293
accounts/scwallet: update documentation (#22242)
gballet Jan 26, 2021
a72fa88
les: switch to new discv5 (#21940)
zsfelfoldi Jan 26, 2021
2e5d141
rpc: deprecate Client.ShhSubscribe (#22239)
gballet Jan 27, 2021
eb21c65
cmd,core,eth,params,tests: define yolov3 + enable EIP-2565 (#22213)
s1na Jan 28, 2021
7a800f9
les/utils: UDP rate limiter (#21930)
zsfelfoldi Jan 28, 2021
f25b437
cmd/clef: don't check file permissions on windows (#22251)
holiman Jan 29, 2021
3c728fb
eth/tracers: fix unigram tracer (#22248)
s1na Feb 1, 2021
e3430ac
eth: check snap satelliteness, delegate drop to eth (#22235)
karalabe Feb 2, 2021
4eae0c6
cmd/geth, node: allow configuring JSON-RPC on custom path prefix (#22…
renaynay Feb 2, 2021
ef84da8
all: remove unneeded parentheses (#21921)
alexprut Feb 2, 2021
83e4c49
trie : use trie.NewStackTrie instead of new(trie.Trie) (#22246)
ucwong Feb 2, 2021
3512b41
core: reset txpool state on sethead (#22247)
MariusVanDerWijden Feb 3, 2021
54735a6
fuzzers: added consensys/gurvy library to bn256 differential fuzzer (…
MariusVanDerWijden Feb 3, 2021
2812132
internal/ethapi: comment nitpick (#22270)
MariusVanDerWijden Feb 5, 2021
098a2b6
eth: move eth.Config to a common package (#22205)
rjl493456442 Feb 5, 2021
fba5a63
internal/ethapi: fix typo in comment (#22271)
MariusVanDerWijden Feb 5, 2021
7ed860d
eth: don't wait for snap registration if we're not running snap (#22272)
holiman Feb 5, 2021
e74bd58
consensus: remove seal verification from the consensus engine interfa…
gballet Feb 5, 2021
994cdc6
cmd/utils: enable snapshots by default
karalabe Feb 7, 2021
477fd42
metrics: fix cast omission in cpu_syscall.go (#22262)
isdyaufh8o7cq Feb 8, 2021
bbe694f
Merge pull request #22280 from karalabe/snapshot-default
karalabe Feb 8, 2021
d86906f
params: just to make snapshots a bit more official
karalabe Feb 8, 2021
f566dd3
all: bloom-filter based pruning mechanism (#21724)
rjl493456442 Feb 8, 2021
123e934
Merge pull request #22288 from karalabe/1.10.unstable
karalabe Feb 8, 2021
2728672
core/state/pruner: fix compaction after pruning
karalabe Feb 8, 2021
944d901
Merge pull request #22291 from karalabe/fix-pruner-compaction
karalabe Feb 8, 2021
74dbc20
core/state/pruner: fix compaction range error
holiman Feb 8, 2021
2fdba3a
Merge pull request #22294 from holiman/pruner_compact_fix
karalabe Feb 9, 2021
2778667
internal/debug: add switch to format logs with json (#22207)
s1na Feb 9, 2021
cb3c7e4
accounts/abi/bind: fixed unpacking error (#22230)
MariusVanDerWijden Feb 10, 2021
409b16e
cmd/utils, eth/ethconfig: unindex txs older than ~1 year
karalabe Feb 8, 2021
1bbc8a1
Merge pull request #22293 from karalabe/txunindex-1year
karalabe Feb 10, 2021
111abdc
cmd/devp2p: fix documentation for eth-test (#22298)
renaynay Feb 11, 2021
ef227c5
core: fix temp memory blowup caused by defers holding on to state
karalabe Feb 12, 2021
2fc465a
Merge pull request #22319 from karalabe/fix-defer-leak
karalabe Feb 12, 2021
7d1b711
les: enable les/4 and add tests (#22321)
zsfelfoldi Feb 12, 2021
08c878a
cmd/utils: add workaround for FreeBSD statfs quirk (#22310)
gballet Feb 15, 2021
7778780
cmd/geth: fix js unclean shutdown (#22302)
alex347 Feb 15, 2021
e991bda
trie: fix bloom crash on fast sync restart
karalabe Feb 16, 2021
f4fcd4f
rpc: increase the number of subscriptions in storm test (#22316)
gballet Feb 16, 2021
915c614
Merge pull request #22332 from karalabe/fix-fastsync-restart-bloom-crash
karalabe Feb 16, 2021
9ec3329
core/state/snapshot: ensure Cap retains a min number of layers
karalabe Feb 16, 2021
6291fc9
Merge pull request #22331 from karalabe/enforce-min-snap-difflayers
karalabe Feb 16, 2021
bfdff4c
eth: fix snap sync cancellation
karalabe Feb 16, 2021
f9445e9
cmd/devp2p/internal/ethtest: use shared message types (#22315)
renaynay Feb 16, 2021
1489c3f
Merge pull request #22334 from karalabe/fix-snap-cancel
karalabe Feb 16, 2021
e01096f
eth/handler, broadcast: optimize tx broadcast mechanism (#22176)
holiman Feb 17, 2021
52e5c38
core/state: copy the snap when copying the state (#22340)
holiman Feb 18, 2021
9ec32a9
rlp: handle case of normal EOF in Stream.readFull (#22336)
oneeman Feb 18, 2021
b1835b3
node: always show websocket url in logs (#22307)
holiman Feb 18, 2021
6ec1561
eth: implement eth66 (#22241)
holiman Feb 18, 2021
d36276d
p2p/dnsdisc: fix hot-spin when all trees are empty (#22313)
fjl Feb 19, 2021
c027507
les: renamed lespay to vflux (#22347)
zsfelfoldi Feb 19, 2021
ca76db6
cmd/utils: disable caching preimages by default
karalabe Feb 19, 2021
c5023e1
travis, appveyor, build: bump Go to 1.16
karalabe Feb 19, 2021
8647233
les: fix balance expiration (#22343)
zsfelfoldi Feb 19, 2021
8f03e3b
tests/fuzzers/les: add fuzzer for les server handler (#22282)
zsfelfoldi Feb 20, 2021
3ecfdcc
les: clean up server handler (#22357)
rjl493456442 Feb 22, 2021
c4a2b68
cmd/geth: add db commands stats, compact, put, get, delete (#22014)
holiman Feb 23, 2021
142fbcf
internal/ethapi: reject non-replay-protected txs over RPC (#22339)
MariusVanDerWijden Feb 23, 2021
2d1a0e9
accounts/abi/bind: fix up Go mod files for Go 1.16
karalabe Feb 23, 2021
2743fb0
Dockerfile: bump to Go 1.16 base images
karalabe Feb 23, 2021
4ee8d2d
travis, appveyor, build, Dockerfile: bump Go to 1.16 (#22351)
karalabe Feb 23, 2021
cdb6a84
Merge pull request #22350 from karalabe/disable-preimage-collection
karalabe Feb 23, 2021
c9aa267
travis: bump Android NDK version
karalabe Feb 23, 2021
b502c86
Merge pull request #22368 from karalabe/ndk-bump
karalabe Feb 23, 2021
70afe15
travis: bump builders to Bionic
karalabe Feb 23, 2021
bf5b379
Merge pull request #22369 from karalabe/android-bionic-builder
karalabe Feb 23, 2021
f54dc4a
travis: manually install Android since Travis is stale (#22373)
karalabe Feb 24, 2021
8e547ee
cmd/utils: remove deprecated command line flags (#22263)
renaynay Feb 24, 2021
b2b5c82
eth/protocols/snap: lower abortion and resumption logs to debug
karalabe Feb 25, 2021
96d9306
Merge pull request #22381 from karalabe/lower-error-log
karalabe Feb 25, 2021
378e961
cmd, eth, les: enable serving light clients when non-synced (#22250)
rjl493456442 Feb 25, 2021
7a3c890
les, light: improve txstatus retrieval (#22349)
rjl493456442 Feb 25, 2021
bbfb1e4
all: add support for EIP-2718, EIP-2930 transactions (#21502)
lightclient Feb 25, 2021
de9465f
cmd/devp2p: add eth66 test suite (#22363)
renaynay Feb 25, 2021
dc109cc
les: move server pool to les/vflux/client (#22377)
zsfelfoldi Feb 25, 2021
0928562
all: define Berlin hard fork spec
karalabe Feb 25, 2021
27b3137
rpc: add separate size limit for websocket (#22385)
fjl Feb 26, 2021
744707a
Merge pull request #22380 from karalabe/berlin
karalabe Feb 26, 2021
3822b09
accounts/keystore: use github.com/google/uuid (#22217)
MariusVanDerWijden Feb 26, 2021
498458b
core/state: fix eta calculation on pruning (#22386)
holiman Feb 26, 2021
d968704
les: UDP pre-negotiation of available server capacity (#22183)
zsfelfoldi Mar 1, 2021
19d7a37
core/rawdb: fix the transaction indexer (#22395)
rjl493456442 Mar 1, 2021
0540d3c
cmd/geth: put allowUnsecureTx flag in RPC section (#22412)
MariusVanDerWijden Mar 3, 2021
c539a05
params: update chts (#22418)
rjl493456442 Mar 3, 2021
07e907c
cmd/utils: fix txlookuplimit for archive node (#22419)
rjl493456442 Mar 3, 2021
ba99910
core/forkid, params: unset Berlin fork number (#22413)
karalabe Mar 3, 2021
b24804d
les: fix nodiscover option on the client side (#22422)
zsfelfoldi Mar 3, 2021
5a81dd9
cmd: retire whisper flags (#22421)
rjl493456442 Mar 3, 2021
cd316d7
tests: update to latest tests (#22290)
MariusVanDerWijden Mar 3, 2021
56dec25
params: release geth 1.10.0 stable
fjl Mar 3, 2021
d960ced
solve all conflicts, added few UT fixes and fix some linting
achraf17 Oct 14, 2021
d7078de
Update after the tracers factoring and solve some linting
achraf17 Oct 19, 2021
412a8ec
fix all the linting issues
achraf17 Oct 19, 2021
a46b6ea
fix graphql test
achraf17 Oct 19, 2021
2fd4090
fix wallet test
achraf17 Oct 25, 2021
dee58ec
fix cmd package test
achraf17 Oct 25, 2021
f11270d
fix internal package test
achraf17 Oct 25, 2021
b48ae2e
fix internal package test
achraf17 Oct 25, 2021
ffbf07b
fix accounts and contracts package test
achraf17 Oct 26, 2021
86d1134
fix light package test
achraf17 Oct 27, 2021
b189fb8
merge master changes
achraf17 Nov 1, 2021
8030d64
fix some unit tests and changes on the state_prefetcher.go
achraf17 Nov 2, 2021
aa2fb7e
fix core unit test
achraf17 Nov 2, 2021
6a25084
fix unit test
achraf17 Nov 9, 2021
cddea8b
Merge remote-tracking branch 'origin/master' into upgrade/go-ethereum…
achraf17 Nov 9, 2021
fb1d7c1
faucet: do not replace normal url to mobile version
achraf17 Nov 15, 2021
1012834
faucet: revert change
achraf17 Nov 16, 2021
835d7de
eth: added UT for transaction propagation
achraf17 Nov 16, 2021
196e9a3
internal/eth: fixed merging side effect
achraf17 Nov 16, 2021
48a6f75
accounts: copy signer
achraf17 Nov 16, 2021
2e02760
Added Quorum tag for the UT
achraf17 Nov 17, 2021
ab5a991
fix: add some fixes and UT (#3)
achraf17 Nov 17, 2021
4527fe2
Merge branch 'upgrade/go-ethereum/v1.10.0-2021903090443' of github.co…
achraf17 Nov 17, 2021
5a448a9
fix: eth/handler.go accept tx for raft consensus
achraf17 Nov 18, 2021
b951c1a
fix: internal/ethapi add check for accessList if its nil
achraf17 Nov 22, 2021
23a1d18
add eth66 protocol to consensus
baptiste-b-pegasys Nov 25, 2021
0e2d5e6
fix: broadcaster
baptiste-b-pegasys Nov 25, 2021
71567c3
revert: logs
baptiste-b-pegasys Nov 25, 2021
68872f3
disable flakey facebook test
antonydenyer Dec 3, 2021
4bdabd9
fix: eth/api_backend.go use the modified GetReceipts to get the priva…
achraf17 Dec 7, 2021
beb4d28
Merge branch 'upgrade/go-ethereum/v1.10.0-2021903090443' of github.co…
achraf17 Dec 7, 2021
7cce45b
fix: eth/traces fix the tracer to ignore the tx that the party is not…
achraf17 Dec 8, 2021
c31dfa7
fix: raft/snapshot remove the trimming of the peer ID
achraf17 Dec 9, 2021
2d7249d
Accept chainId on permissioning endpoints
antonydenyer Dec 10, 2021
1956972
fix: force preimages for making complete dumps
baptiste-b-pegasys Dec 13, 2021
e6f7c82
Specify chainId against permision contracts
antonydenyer Dec 13, 2021
f2dee5a
Specify chainId with NewWalletTransactor
antonydenyer Dec 14, 2021
c991a16
Remove chainId from NewWalletTransactor
antonydenyer Dec 18, 2021
50a5cea
Pass chainId through to NewWalletTransactor from config
antonydenyer Dec 20, 2021
aba60d7
fix lint
antonydenyer Dec 20, 2021
d9969ad
fix unit tests
antonydenyer Dec 21, 2021
29ec003
fix lint
antonydenyer Dec 21, 2021
9d50b17
Upgrade protobuf to 1.5.1
antonydenyer Dec 22, 2021
6142629
remove commented code
achraf17 Dec 22, 2021
f1fbfc5
added few error checks and some code cleaning
achraf17 Dec 22, 2021
0fd5b8a
added few error checks and some code cleaning
achraf17 Dec 22, 2021
27c9fad
fix conflict merge
baptiste-b-pegasys Jan 13, 2022
52a847a
Merge branch 'master' into upgrade/go-ethereum/v1.10.0-2021903090443
baptiste-b-pegasys Jan 13, 2022
a093e77
fix linter
baptiste-b-pegasys Jan 13, 2022
7697c75
Merge branch 'master' of github.com:ConsenSys/quorum into upgrade/go-…
antonydenyer Jan 21, 2022
39e42f4
Prevent prune-state from being used when IsQuorum is enabled
antonydenyer Jan 21, 2022
96230a8
Merge branch 'master' into upgrade/go-ethereum/v1.10.0-2021903090443
antonydenyer Jan 25, 2022
dfec3a4
Remove date for deprecation notice, made more generic
antonydenyer Jan 25, 2022
bedb574
Merge branch 'upgrade/go-ethereum/v1.10.0-2021903090443' of github.co…
achraf17 Jan 26, 2022
6331bfe
fix: miner/worker.go mix-up when resolving conflicts about miner slee…
achraf17 Jan 26, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions accounts/abi/bind/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"io"
"io/ioutil"
"math/big"
"reflect"

"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/accounts/external"
Expand Down Expand Up @@ -133,6 +134,7 @@ func NewKeyStoreTransactorWithChainID(keystore *keystore.KeyStore, account accou
return nil, ErrNoChainID
}
latestSigner := types.LatestSignerForChainID(chainID)
log.Info("NewKeyStoreTransactorWithChainID", "latestSigner", reflect.TypeOf(latestSigner))
return &TransactOpts{
From: account.Address,
Signer: func(address common.Address, tx *types.Transaction) (*types.Transaction, error) {
Expand Down Expand Up @@ -192,6 +194,7 @@ func NewClefTransactor(clef *external.ExternalSigner, account accounts.Account)
if address != account.Address {
return nil, ErrNotAuthorized
}
log.Info("Signing with NewClefTransactor")
return clef.SignTx(account, transaction, transaction.ChainId()) // Clef enforces its own chain id
},
}
Expand All @@ -201,14 +204,18 @@ func NewClefTransactor(clef *external.ExternalSigner, account accounts.Account)
//
// NewWalletTransactor is a utility method to easily create a transaction signer
// from a wallet account
func NewWalletTransactor(w accounts.Wallet, account accounts.Account) *TransactOpts {
func NewWalletTransactor(w accounts.Wallet, account accounts.Account, chainId *big.Int) *TransactOpts {
return &TransactOpts{
From: account.Address,
Signer: func(address common.Address, transaction *types.Transaction) (*types.Transaction, error) {
if address != account.Address {
return nil, errors.New("not authorized to sign this account")
}
return w.SignTx(account, transaction, transaction.ChainId())
if transaction.ChainId() == nil {
chainId = transaction.ChainId()
}

return w.SignTx(account, transaction, chainId)
},
}
}
9 changes: 6 additions & 3 deletions extension/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/hex"
"errors"
"fmt"
"github.com/ethereum/go-ethereum/params"
achraf17 marked this conversation as resolved.
Show resolved Hide resolved
"math/big"
"sync"

Expand Down Expand Up @@ -34,7 +35,8 @@ type PrivacyService struct {
mu sync.Mutex
psiContracts map[types.PrivateStateIdentifier]map[common.Address]*ExtensionContract

node *node.Node
node *node.Node
config *params.ChainConfig
}

var (
Expand Down Expand Up @@ -74,7 +76,7 @@ func (service *PrivacyService) subscribeStopEvent() (chan stopEvent, event.Subsc
return c, s
}

func New(stack *node.Node, ptm private.PrivateTransactionManager, manager *accounts.Manager, handler DataHandler, fetcher *StateFetcher, apiBackendHelper APIBackendHelper) (*PrivacyService, error) {
func New(stack *node.Node, ptm private.PrivateTransactionManager, manager *accounts.Manager, handler DataHandler, fetcher *StateFetcher, apiBackendHelper APIBackendHelper, config *params.ChainConfig) (*PrivacyService, error) {
service := &PrivacyService{
psiContracts: make(map[types.PrivateStateIdentifier]map[common.Address]*ExtensionContract),
ptm: ptm,
Expand All @@ -83,6 +85,7 @@ func New(stack *node.Node, ptm private.PrivateTransactionManager, manager *accou
accountManager: manager,
apiBackendHelper: apiBackendHelper,
node: stack,
config: config,
}

var err error
Expand Down Expand Up @@ -384,7 +387,7 @@ func (service *PrivacyService) GenerateTransactOptions(txa ethapi.SendTxArgs) (*

//Find the account we plan to send the transaction from

txArgs := bind.NewWalletTransactor(wallet, from)
txArgs := bind.NewWalletTransactor(wallet, from, service.config.ChainID)
txArgs.PrivateFrom = txa.PrivateFrom
txArgs.PrivateFor = txa.PrivateFor
txArgs.GasLimit = defaultGasLimit
Expand Down
2 changes: 1 addition & 1 deletion extension/services_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func NewServicesFactory(stack *node.Node, ptm private.PrivateTransactionManager,
factory.dataHandler = NewJsonFileDataHandler(stack.InstanceDir())
factory.stateFetcher = NewStateFetcher(ethService.BlockChain())

backendService, err := New(stack, ptm, factory.AccountManager(), factory.DataHandler(), factory.StateFetcher(), ethService.APIBackend)
backendService, err := New(stack, ptm, factory.AccountManager(), factory.DataHandler(), factory.StateFetcher(), ethService.APIBackend, ethService.BlockChain().Config())
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion permission/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func (p *PermissionCtrl) getTxParams(txa ethapi.SendTxArgs) (*bind.TransactOpts,
return nil, ptype.ErrInvalidAccount
}
fromAcct := accounts.Account{Address: txa.From}
transactOpts := bind.NewWalletTransactor(w, fromAcct)
transactOpts := bind.NewWalletTransactor(w, fromAcct, p.chainID)

transactOpts.GasPrice = defaultGasPrice
if txa.GasPrice != nil {
Expand Down