-
Notifications
You must be signed in to change notification settings - Fork 20.2k
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
all: implement eip-1559 #22837
all: implement eip-1559 #22837
Conversation
This PR, I think, erroneously would accept @fjl , do you think we should extend the signers so we have a |
|
Yes, we need a new signer every time a new tx type is added. This is also why I added the |
core/types: add back gasPrice core/types: add base fee to block params: add eip-1559 constants consensus: verify base fee calculation consensus: swap out custom max fn for common.math impl params,consensus: add test fork Aleut core: implement gas accounting for txs after eip-1559 accounts,interfaces,internal: tweak msg interface to support feeCap + tip core: add base fee to effective gas price core/types: add 1559 header serialization and block test all: e2e test for eip-1559 plus some bug fixes consensus: add test for block elasticity consensus: add basefee to sealing hash and fix off-by-one bug in transition consensus: check 1559 headers in clique consensus/clique: update seal hasher to include basefee core/types: fix 1559 signing hash core: appease linter core/vm: add base fee opcode all: add comments and misc clean up core/types: rename to DynamicFeeTx internal/ethapi: add missing new msg parameter consensus/misc/eip1559: improve logging Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de> core/evm: default baseFee to 0 even when inactive core/consensus: add license text to eip1559 files core/types: update license date and simplify newmessage func params/config: update aleut chainid consensus/misc/eip1559: reduce big int allocations core/state_processor: fix block elasticity core/state_transition: throw if baseFee is invalid cmd/evm: add eip-1559 support for t8n core/types: add aliases for tip and feeCap json unmarshallers to match spec consensus/misc/eip1559: better invalid baseFee error msg core/evm: don't initialize basefee unless header includes it core,eth,les: calculate effective gas price in tx.AsMessage(..) consensus/misc/eip1559: check that base fee is not nil tests/init: add new aluet testing configs core/types/transaction_signing: update ACL reference in comment to AL core,consensus: pass in chain config to eip1559 functions all: clean up rebase params/config: update baikal london block to 500 consensus: verify basefee not defined before clique fork, imporve errors cmd/evm: account for elasticity parameter in gas limit core: name base fee errors
This PR now has support for the new changes in EIP-1559: ethereum/EIPs#3552 . Cherry-picked from quilt, credits @lightclient (I haven't really tested/reviewed it, please help checking it) |
I think we should add some tests for the Edit: Done |
This is @lightclient 's work on 1559, but squashed. The reason for squashing it is simply that it makes it easier to rebase when the
master
changes.Also, making the PR from
holiman
makes it possible for geth-maintainers to push to the repo.