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

Implement EIP-2718 & EIP-2930 #3

Closed
wants to merge 411 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
411 commits
Select commit Hold shift + click to select a range
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
cb87b43
all: implement EIP-2718 + EIP-2930
lightclient Sep 4, 2020
1a70454
core/types, core/tx_pool: if access list not provided, set to empty l…
lightclient Nov 11, 2020
4ea3eeb
core/types: tests for accesslist transactions
holiman Nov 10, 2020
a457ae9
accounts/keystore, internal/ethapi: implement ethapi support for acl …
holiman Jan 12, 2021
b35f4d9
core/types, cmd/evm: integrate acl-tx into evm t8n + examples
holiman Jan 21, 2021
03ce4d8
core/types: rename tx json marshaller
lightclient Jan 22, 2021
27139df
cmd/evm: make evm t8n output block body (optional)
holiman Jan 23, 2021
5ae76df
eth: properly handle 2930 in api tracer
holiman Jan 24, 2021
ab662a8
core, eth, internal, light: fix rebase issues yolov2 -> yolov3
holiman Jan 29, 2021
a990187
cmd/geth, utils, params: re-enable --yolov3 switch + fix datadir + co…
holiman Jan 29, 2021
4b27811
internal/ethapi: add access list tx fields to RPC responses + fix sen…
holiman Jan 29, 2021
3871a11
core: remove json blockchain tests, fix unused imports
lightclient Jan 30, 2021
9a0b788
internal/t8ntool: output block body as hex-encoded string, same outpu…
holiman Feb 1, 2021
6efe70d
all: refactor access list handling + fix flaw in t8n
holiman Feb 3, 2021
68bfe72
cmd/geth: correct log output on yolov3
holiman Feb 4, 2021
ba9db21
core/types: update tx signing hash according to https:/et…
holiman Feb 9, 2021
852ffce
core/types: add test for input to derivesha
holiman Feb 10, 2021
4d236b1
core/types: use switch
fjl Feb 11, 2021
ee783aa
core/types: clean up encoder
fjl Feb 11, 2021
11468ed
core/types: clean up WithSignature
fjl Feb 11, 2021
c6d1881
core/types: implement DeriveSha in a diffent way
fjl Feb 11, 2021
27b8e16
core/types: rename inner -> innerTx and remove docs
fjl Feb 11, 2021
e3afa34
core/types: use encoder buffer pool in EncodeRLP
fjl Feb 11, 2021
00bd0f1
core/types: add DeriveSha tests from StackTrie
fjl Feb 12, 2021
c980866
core/types: fix ineffectual assignment
fjl Feb 12, 2021
a25bc38
core/types: update receipt RLP handling
fjl Feb 12, 2021
27f966f
core/types: fix crash when decoding empty typed tx / receipt
fjl Feb 12, 2021
94feb0f
core/types: add missing tests
fjl Feb 12, 2021
c0b5059
core/types: add methods for EIP2718 canon encoding
fjl Feb 12, 2021
90eccc7
core/types: use encodeTyped in one more place
fjl Feb 12, 2021
0a59de2
internal/ethapi: canon format in fillTransaction and sendRawTransaction
fjl Feb 12, 2021
6e94273
internal/ethapi: fixup
fjl Feb 12, 2021
a3e4006
core/types: group simple tx accessors
fjl Feb 12, 2021
7d85a1d
core/types: rename tx type enum values
fjl Feb 12, 2021
c97925e
core/types: rename transaction types
fjl Feb 12, 2021
e8d48ea
core/types: remove CheckNonce of Transaction
fjl Feb 12, 2021
29cd03e
core/types: remove CheckNonce from innerTx
fjl Feb 12, 2021
4df70a5
internal/ethapi: use MarshallBinary in a few more places
holiman Feb 12, 2021
fb9517a
all: use Marshall/UnmarshallBinary over rlp for transactions
holiman Feb 12, 2021
0509791
core, params, cmd/utils: redefine yolov3 as yolov3x
holiman Feb 13, 2021
3a053a8
core: fix panic in prefetcher, due to 2930-access list not having bee…
holiman Feb 14, 2021
c1ebe42
core/types: fix decoding error due to shadowing
holiman Feb 14, 2021
1013bb4
core/types: fix flaw in receipt test
holiman Feb 15, 2021
54718c3
internal/ethapi: Fix use correct signer in GetTransactionReceipt
ryanschneider Feb 17, 2021
9bdc7ab
core/types: improve transaction JSON handling
fjl Feb 17, 2021
4a28669
core/types: use switch in new signer
fjl Feb 18, 2021
cdabbb0
core/types: reject typed transactions in legacy signers
fjl Feb 18, 2021
6eeeccd
core: remove extra checks for tx type
fjl Feb 18, 2021
52359ac
cmd/evm/internal/t8ntool: remove check for tx type
fjl Feb 18, 2021
ced016e
core: move access list setup into ApplyMessage
fjl Feb 18, 2021
02c1cbf
core: remove extra check for tx type in txpool
fjl Feb 18, 2021
5da8a0f
core: ensure there is only one error for unsupported tx type
fjl Feb 18, 2021
389f039
core/types: clean up innerTx accessors
fjl Feb 19, 2021
68e304b
core/types: remove tx.typ
fjl Feb 19, 2021
81a5bdc
core/types: document transaction accessors
fjl Feb 19, 2021
a05771d
core/types, miner, params: fix signer-flaw/crash in miner, add yolov3…
holiman Feb 19, 2021
ec78fe9
core/types: add NewTx constructor
fjl Feb 19, 2021
f02d1d1
core/types: add MustSignNewTx
fjl Feb 19, 2021
6e99680
miner: fix tests
fjl Feb 19, 2021
3f316e7
miner: use MakeSigner
fjl Feb 19, 2021
59fcaf8
internal/ethapi: use MakeSigner in getTransactionReceipt
fjl Feb 19, 2021
3b92b59
internal/ethapi: fix compile flaw
holiman Feb 21, 2021
dc796a4
internal/ethapi: use EIP2718 signer
fjl Feb 22, 2021
068899b
internal/ethapi: set "type" for all transactions
fjl Feb 22, 2021
3cde545
core/types: make access list optional in JSON
fjl Feb 22, 2021
c0743fe
internal/ethapi: always return tx type, part 2
fjl Feb 22, 2021
d866788
core/types: un-pointer access lists
fjl Feb 22, 2021
857123f
core/types: add documentation for access list transaction types
fjl Feb 22, 2021
f5af3c4
core/types: use copy() in WithSignature
fjl Feb 22, 2021
0fbc048
core/types: add documentation comment for LegacyTx
fjl Feb 22, 2021
fa857ea
core/types: remove AccessList.Addresses
fjl Feb 22, 2021
130c1e5
cmd/evm: fix t8ntool receipt root hash
holiman Feb 23, 2021
0578680
core: simplify receipt logic in state processor
holiman Feb 23, 2021
131c388
core/types: remove NewEIP2718Receipt
fjl Feb 23, 2021
b744467
core/types: rename LegacyTx/AccessListTx fields
fjl Feb 23, 2021
20b14c6
core/types: add API to get the latest signer
fjl Feb 23, 2021
406af1b
core/types: rename and unexport EIP2718Signer
fjl Feb 23, 2021
ee66c67
miner: fix test
fjl Feb 23, 2021
559cb21
core/types: make the receipt-type 0x-prefixed string in json
holiman Feb 24, 2021
dd2483c
core/types: fix chain ID handling in eip2930Signer
fjl Feb 24, 2021
dfba23b
ethclient: fix signer
fjl Feb 24, 2021
8f1528e
core/types: fix check in tx decoder
fjl Feb 25, 2021
9750e9b
core: move tx type check earlier
fjl Feb 25, 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
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ Please make sure your contributions adhere to our coding guidelines:
Before you submit a feature request, please check and make sure that it isn't
possible through some other means. The JavaScript-enabled console is a powerful
feature in the right hands. Please check our
[Wiki page](https://github.com/ethereum/go-ethereum/wiki) for more info
[Geth documentation page](https://geth.ethereum.org/docs/) for more info
and help.

## Configuration, dependencies, and tests

Please see the [Developers' Guide](https://github.com/ethereum/go-ethereum/wiki/Developers'-Guide)
Please see the [Developers' Guide](https://geth.ethereum.org/docs/developers/devguide)
for more details on configuring your environment, managing project dependencies
and testing procedures.
12 changes: 7 additions & 5 deletions .github/ISSUE_TEMPLATE.md → .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
Hi there,

Please note that this is an issue tracker reserved for bug reports and feature requests.

For general questions please use [discord](https://discord.gg/nthXNEv) or the Ethereum stack exchange at https://ethereum.stackexchange.com.
---
name: Report a bug
about: Something with go-ethereum is not working as expected
title: ''
labels: 'type:bug'
assignees: ''
---

#### System information

Expand Down
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Request a feature
about: Report a missing feature - e.g. as a step before submitting a PR
title: ''
labels: 'type:feature'
assignees: ''
---

# Rationale

Why should this feature exist?
What are the use-cases?

# Implementation

Do you have ideas regarding the implementation of this feature?
Are you willing to implement this feature?
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: Ask a question
about: Something is unclear
title: ''
labels: 'type:docs'
assignees: ''
---

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.
191 changes: 79 additions & 112 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
allow_failures:
- stage: build
os: osx
go: 1.14.x
go: 1.15.x
env:
- azure-osx
- azure-ios
Expand All @@ -15,84 +15,21 @@ jobs:
# This builder only tests code linters on latest version of Go
- stage: lint
os: linux
dist: xenial
go: 1.15.x
dist: bionic
go: 1.16.x
env:
- lint
git:
submodules: false # avoid cloning ethereum/tests
script:
- go run build/ci.go lint

- stage: build
os: linux
dist: xenial
go: 1.13.x
env:
- GO111MODULE=on
script:
- go run build/ci.go install
- go run build/ci.go test -coverage $TEST_PACKAGES

- stage: build
os: linux
dist: xenial
go: 1.14.x
env:
- GO111MODULE=on
script:
- go run build/ci.go install
- go run build/ci.go test -coverage $TEST_PACKAGES

# These are the latest Go versions.
- stage: build
os: linux
arch: amd64
dist: xenial
go: 1.15.x
env:
- GO111MODULE=on
script:
- go run build/ci.go install
- go run build/ci.go test -coverage $TEST_PACKAGES

- stage: build
if: type = pull_request
os: linux
arch: arm64
dist: xenial
go: 1.15.x
env:
- GO111MODULE=on
script:
- go run build/ci.go install
- go run build/ci.go test -coverage $TEST_PACKAGES

- stage: build
os: osx
osx_image: xcode11.3
go: 1.15.x
env:
- GO111MODULE=on
script:
- echo "Increase the maximum number of open file descriptors on macOS"
- NOFILE=20480
- sudo sysctl -w kern.maxfiles=$NOFILE
- sudo sysctl -w kern.maxfilesperproc=$NOFILE
- sudo launchctl limit maxfiles $NOFILE $NOFILE
- sudo launchctl limit maxfiles
- ulimit -S -n $NOFILE
- ulimit -n
- unset -f cd # workaround for https:/travis-ci/travis-ci/issues/8703
- go run build/ci.go install
- go run build/ci.go test -coverage $TEST_PACKAGES

# This builder does the Ubuntu PPA upload
- stage: build
if: type = push
os: linux
dist: xenial
go: 1.15.x
dist: bionic
go: 1.16.x
env:
- ubuntu-ppa
- GO111MODULE=on
Expand All @@ -109,15 +46,15 @@ jobs:
- python-paramiko
script:
- echo '|1|7SiYPr9xl3uctzovOTj4gMwAC1M=|t6ReES75Bo/PxlOPJ6/GsGbTrM0= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0aKz5UTUndYgIGG7dQBV+HaeuEZJ2xPHo2DS2iSKvUL4xNMSAY4UguNW+pX56nAQmZKIZZ8MaEvSj6zMEDiq6HFfn5JcTlM80UwlnyKe8B8p7Nk06PPQLrnmQt5fh0HmEcZx+JU9TZsfCHPnX7MNz4ELfZE6cFsclClrKim3BHUIGq//t93DllB+h4O9LHjEUsQ1Sr63irDLSutkLJD6RXchjROXkNirlcNVHH/jwLWR5RcYilNX7S5bIkK8NlWPjsn/8Ua5O7I9/YoE97PpO6i73DTGLh5H9JN/SITwCKBkgSDWUt61uPK3Y11Gty7o2lWsBjhBUm2Y38CBsoGmBw==' >> ~/.ssh/known_hosts
- go run build/ci.go debsrc -goversion 1.15 -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <[email protected]>"
- go run build/ci.go debsrc -upload ethereum/ethereum -sftp-user geth-ci -signer "Go Ethereum Linux Builder <[email protected]>"

# This builder does the Linux Azure uploads
- stage: build
if: type = push
os: linux
dist: xenial
dist: bionic
sudo: required
go: 1.15.x
go: 1.16.x
env:
- azure-linux
- GO111MODULE=on
Expand All @@ -129,32 +66,32 @@ jobs:
- gcc-multilib
script:
# Build for the primary platforms that Trusty can manage
- go run build/ci.go install
- go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
- go run build/ci.go install -arch 386
- go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
- go run build/ci.go install -dlgo
- go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
- go run build/ci.go install -dlgo -arch 386
- go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds

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

- GOARM=5 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc
- GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
- GOARM=6 go run build/ci.go install -arch arm -cc arm-linux-gnueabi-gcc
- GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
- GOARM=7 go run build/ci.go install -arch arm -cc arm-linux-gnueabihf-gcc
- GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
- go run build/ci.go install -arch arm64 -cc aarch64-linux-gnu-gcc
- go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
- GOARM=5 go run build/ci.go install -dlgo -arch arm -cc arm-linux-gnueabi-gcc
- GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
- GOARM=6 go run build/ci.go install -dlgo -arch arm -cc arm-linux-gnueabi-gcc
- GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
- GOARM=7 go run build/ci.go install -dlgo -arch arm -cc arm-linux-gnueabihf-gcc
- GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds
- go run build/ci.go install -dlgo -arch arm64 -cc aarch64-linux-gnu-gcc
- go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds

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

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

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

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

# This builder does the Android Maven and Azure uploads
- stage: build
if: type = push
os: linux
dist: xenial
dist: bionic
addons:
apt:
packages:
- oracle-java8-installer
- oracle-java8-set-default
language: android
android:
components:
- platform-tools
- tools
- android-15
- android-19
- android-24
- openjdk-8-jdk
env:
- azure-android
- maven-android
- GO111MODULE=on
git:
submodules: false # avoid cloning ethereum/tests
before_install:
- curl https://dl.google.com/go/go1.15.linux-amd64.tar.gz | tar -xz
# Install Android and it's dependencies manually, Travis is stale
- export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
- curl https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest.zip -o android.zip
- unzip -q android.zip -d $HOME/sdk && rm android.zip
- mv $HOME/sdk/cmdline-tools $HOME/sdk/latest && mkdir $HOME/sdk/cmdline-tools && mv $HOME/sdk/latest $HOME/sdk/cmdline-tools
- export PATH=$PATH:$HOME/sdk/cmdline-tools/latest/bin
- export ANDROID_HOME=$HOME/sdk

- yes | sdkmanager --licenses >/dev/null
- sdkmanager "platform-tools" "platforms;android-15" "platforms;android-19" "platforms;android-24" "ndk-bundle"

# Install Go to allow building with
- curl https://dl.google.com/go/go1.16.linux-amd64.tar.gz | tar -xz
- export PATH=`pwd`/go/bin:$PATH
- export GOROOT=`pwd`/go
- export GOPATH=$HOME/go
script:
# Build the Android archive and upload it to Maven Central and Azure
- curl https://dl.google.com/android/repository/android-ndk-r19b-linux-x86_64.zip -o android-ndk-r19b.zip
- unzip -q android-ndk-r19b.zip && rm android-ndk-r19b.zip
- mv android-ndk-r19b $ANDROID_HOME/ndk-bundle

- mkdir -p $GOPATH/src/github.com/ethereum
- ln -s `pwd` $GOPATH/src/github.com/ethereum/go-ethereum
- go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
- go run build/ci.go aar -signer ANDROID_SIGNING_KEY -signify SIGNIFY_KEY -deploy https://oss.sonatype.org -upload gethstore/builds

# This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads
- stage: build
if: type = push
os: osx
go: 1.15.x
go: 1.16.x
env:
- azure-osx
- azure-ios
Expand All @@ -229,8 +165,8 @@ jobs:
git:
submodules: false # avoid cloning ethereum/tests
script:
- go run build/ci.go install
- go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
- go run build/ci.go install -dlgo
- go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -signify SIGNIFY_KEY -upload gethstore/builds

# Build the iOS framework and upload it to CocoaPods and Azure
- gem uninstall cocoapods -a -x
Expand All @@ -245,14 +181,45 @@ jobs:

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

# These builders run the tests
- stage: build
os: linux
arch: amd64
dist: bionic
go: 1.16.x
env:
- GO111MODULE=on
script:
- go run build/ci.go test -coverage $TEST_PACKAGES

- stage: build
if: type = pull_request
os: linux
arch: arm64
dist: bionic
go: 1.16.x
env:
- GO111MODULE=on
script:
- go run build/ci.go test -coverage $TEST_PACKAGES

- stage: build
os: linux
dist: bionic
go: 1.15.x
env:
- GO111MODULE=on
script:
- go run build/ci.go test -coverage $TEST_PACKAGES

# This builder does the Azure archive purges to avoid accumulating junk
- stage: build
if: type = cron
os: linux
dist: xenial
go: 1.15.x
dist: bionic
go: 1.16.x
env:
- azure-purge
- GO111MODULE=on
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build Geth in a stock Go builder container
FROM golang:1.15-alpine as builder
FROM golang:1.16-alpine as builder

RUN apk add --no-cache make gcc musl-dev linux-headers git

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.alltools
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build Geth in a stock Go builder container
FROM golang:1.15-alpine as builder
FROM golang:1.16-alpine as builder

RUN apk add --no-cache make gcc musl-dev linux-headers git

Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ android:
$(GORUN) build/ci.go aar --local
@echo "Done building."
@echo "Import \"$(GOBIN)/geth.aar\" to use the library."

@echo "Import \"$(GOBIN)/geth-sources.jar\" to add javadocs"
@echo "For more info see https://stackoverflow.com/questions/20994336/android-studio-how-to-attach-javadoc"

ios:
$(GORUN) build/ci.go xcode --local
@echo "Done building."
Expand Down
Loading