-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Changes 1559 to have a single shared pool for all transactions. #2924
Conversation
I think instead of It is more accurate to say In practice we should set Thanks for opening this! I haven't had a chance to look into the rest of this PR in more depth, will do so soon. |
ea336e0
to
455466f
Compare
@i-norden I think what you are getting at is that Now that we have merged the other PR, I have rebased this and it is ready to merge once the authors approve it. Per discussion in Discord, we should make note that |
I have removed the prose text that referred to the transition as well (missed it in original PR). |
ee7ec4d
to
9a1132d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Rather than having two pools and a migration, we instead have a single transaction pool and legacy transactions are "upgraded" into 1559 transactions using a *very* naive strategy of just setting `fee_cap == gas_bribe == gas_price`. While in here, I also made a few other minor changes since this is a consensus change and will require all clients update: 1. Renamed premium to bribe. I think this makes it more clear what this is, it is a bribe for the miner to convince them to include your transaction. 2. Changed the gas target calculation to be a bit simpler (per prior conversation with @i-norden) 3. Added special handling for when the gas_used == gas_target (no change in target for next block). 4. Adds missing assertion that gas_used wasn't more than 2x the gas target. 5. Added clarity to some names like `fee_cap` to `fee_cap_per_gas` and `miner_bribe` to `miner_bribe_per_gas`.
Negative numbers suck.
Hopefully adds a bit more clarity to people reading the specification.
Co-authored-by: vbuterin <v@buterin.com>
Co-authored-by: vbuterin <v@buterin.com>
9a1132d
to
4510415
Compare
Hi, I'm a bot! This change was automatically merged because: - It only modifies existing Draft or Last Call EIP(s) - The PR was approved or written by at least one author of each modified EIP - The build is passing
Hi, I'm a bot! This change was automatically merged because: - It only modifies existing Draft or Last Call EIP(s) - The PR was approved or written by at least one author of each modified EIP - The build is passing
Rather than having two pools and a migration, we instead have a single transaction pool and legacy transactions are "upgraded" into 1559 transactions using a very naive strategy of just setting
fee_cap == gas_bribe == gas_price
.While in here, I also made a few other minor changes since this is a consensus change and will require all clients update:
fee_cap
tofee_cap_per_gas
andminer_bribe
tominer_bribe_per_gas
.