go-ethereum/eth/downloader
lightclient bbfb1e4008
all: add support for EIP-2718, EIP-2930 transactions (#21502)
This adds support for EIP-2718 typed transactions as well as EIP-2930
access list transactions (tx type 1). These EIPs are scheduled for the
Berlin fork.

There very few changes to existing APIs in core/types, and several new APIs
to deal with access list transactions. In particular, there are two new
constructor functions for transactions: types.NewTx and types.SignNewTx.
Since the canonical encoding of typed transactions is not RLP-compatible,
Transaction now has new methods for encoding and decoding: MarshalBinary
and UnmarshalBinary.

The existing EIP-155 signer does not support the new transaction types.
All code dealing with transaction signatures should be updated to use the
newer EIP-2930 signer. To make this easier for future updates, we have
added new constructor functions for types.Signer: types.LatestSigner and
types.LatestSignerForChainID. 

This change also adds support for the YoloV3 testnet.

Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Felix Lange <fjl@twurst.com>
Co-authored-by: Ryan Schneider <ryanleeschneider@gmail.com>
2021-02-25 15:26:57 +01:00
..
api.go all: remove redundant conversions and import names (#21903) 2020-11-25 21:00:23 +01:00
downloader_test.go eth: implement eth66 (#22241) 2021-02-18 18:54:29 +02:00
downloader.go all: add support for EIP-2718, EIP-2930 transactions (#21502) 2021-02-25 15:26:57 +01:00
events.go cmd,eth: 16400 Add an option to stop geth once in sync. WIP for light mode (#17321) 2019-01-30 08:40:36 +01:00
fakepeer.go core, eth, les, light: scope receipt functionality a bit cleaner 2019-04-15 13:42:26 +03:00
metrics.go eth/downloader: refactor downloader + queue (#21263) 2020-07-24 10:46:26 +03:00
modes.go eth/downloader: fix typo in comment (#22019) 2020-12-21 15:39:58 +01:00
peer_test.go eth/downloader: refactor downloader + queue (#21263) 2020-07-24 10:46:26 +03:00
peer.go eth: implement eth66 (#22241) 2021-02-18 18:54:29 +02:00
queue_test.go eth/downloader: enhanced test cases for downloader queue (#22114) 2021-01-05 14:56:01 +01:00
queue.go eth/downloader: remove unnecessary condition (#22052) 2020-12-27 22:26:42 +01:00
resultstore.go eth/downloader: refactor downloader + queue (#21263) 2020-07-24 10:46:26 +03:00
statesync.go eth/download/statesync : optimize to avoid a copy in state sync hashing (#22035) 2020-12-21 11:54:39 +01:00
testchain_test.go eth/downloader: dynamically move pivot even during chain sync 2020-09-18 11:37:42 +03:00
types.go eth: conform better to the golint standards (#16783) 2018-06-14 13:14:52 +03:00