Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

EIP 2028: transaction gas lowered from 68 to 16 #10987

Merged
merged 1 commit into from
Aug 23, 2019

Conversation

dvdplm
Copy link
Collaborator

@dvdplm dvdplm commented Aug 23, 2019

Closes #10986

Note: there are no tests in this PR. Not sure what the process is for adding state tests (or whatever it is we need).

@dvdplm dvdplm self-assigned this Aug 23, 2019
@dvdplm dvdplm added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Aug 23, 2019
@dvdplm dvdplm requested review from sorpaas and ordian August 23, 2019 08:39
@sorpaas
Copy link
Collaborator

sorpaas commented Aug 23, 2019

Martin's note on transaction pool. Haven't entirely checked whether this is relevant to us (but most likely it is):

One note, which I already made for aleth, but I see now is applicable for other nodes aswell: Regarding implementing calldata reduction, there's a minor snag with transaction pools -- if they start accepting istanbul-priced txs too early, that's a DoS vector. So in geth we made the pools stateful, and when istanbul hits we flip the switch to use another formula to calculate the intrinsic gas (and thus validity of) a transaction.

@dvdplm
Copy link
Collaborator Author

dvdplm commented Aug 23, 2019

@sorpaas what is "intrinsic gas"?

@sorpaas
Copy link
Collaborator

sorpaas commented Aug 23, 2019

@dvdplm it refers to the gas deducted before code execution starts.

Copy link
Collaborator

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

The transaction pool issue doesn't apply to us afaict, every incoming transaction is being verified against the latest schedule (which in turn get's passed to required_gas calculation). So we'd never accept a instanbul-priced transactions before the fork block is imported.

@tomusdrw tomusdrw added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Aug 23, 2019
@ordian ordian added this to the 2.7 milestone Aug 23, 2019
@ordian ordian added B0-patch-stable 🕷 Pull request should also be back-ported to the stable branch. B1-patch-beta 🕷🕷 labels Aug 23, 2019
@sorpaas sorpaas merged commit 79b671f into master Aug 23, 2019
@sorpaas sorpaas deleted the dp/feature/eip-2028-calldata-cost-reduction branch August 23, 2019 12:14
dvdplm added a commit that referenced this pull request Aug 25, 2019
* master:
  Extract spec to own crate (#10978)
  EIP 2028: transaction gas lowered from 68 to 16 (#10987)
dvdplm added a commit that referenced this pull request Aug 25, 2019
…1344-add-ChainID-opcode

* dp/chore/sort-out-ClientIoMessage:
  Extract spec to own crate (#10978)
  EIP 2028: transaction gas lowered from 68 to 16 (#10987)
  Fix merge problem
  double semi
  Extract engines to own crates (#10966)
  Fix import
  missing import
  Configuration map of block reward contract addresses (#10875)
  Update ethcore/src/snapshot/consensus/mod.rs
  Add a 2/3 quorum option to Authority Round. (#10909)
  Missing import
  Rename supports_warp to snapshot_mode
  Introduce Snapshotting enum to distinguish the type of snapshots a chain uses
  Add an EngineType enum to tighten up Engine.name()
  signers is already a ref
  Update ethcore/engines/clique/src/lib.rs
  Update ethcore/engines/ethash/Cargo.toml
  Update ethcore/engines/basic-authority/Cargo.toml
  Update ethcore/block-reward/Cargo.toml
This was referenced Sep 12, 2019
s3krit added a commit that referenced this pull request Sep 12, 2019
* add more tx tests (#11038)
* Fix parallel transactions race-condition (#10995)
* Add blake2_f precompile (#11017)
* [trace] introduce trace failed to Ext (#11019)
* Edit publish-onchain.sh to use https (#11016)
* Fix deadlock in network-devp2p (#11013)
* EIP 1108: Reduce alt_bn128 precompile gas costs (#11008)
* xDai chain support and nodes list update (#10989)
* EIP 2028: transaction gas lowered from 68 to 16 (#10987)
* EIP-1344 Add CHAINID op-code (#10983)
* manual publish jobs for releases, no changes for nightlies (#10977)
* [blooms-db] Fix benchmarks (#10974)
* Verify transaction against its block during import (#10954)
* Better error message for rpc gas price errors (#10931)
* Fix fork choice (#10837)
* Fix compilation on recent nightlies (#10991)
s3krit added a commit that referenced this pull request Sep 12, 2019
* add more tx tests (#11038)
* Fix parallel transactions race-condition (#10995)
* Add blake2_f precompile (#11017)
* [trace] introduce trace failed to Ext (#11019)
* Edit publish-onchain.sh to use https (#11016)
* Fix deadlock in network-devp2p (#11013)
* EIP 1108: Reduce alt_bn128 precompile gas costs (#11008)
* xDai chain support and nodes list update (#10989)
* EIP 2028: transaction gas lowered from 68 to 16 (#10987)
* EIP-1344 Add CHAINID op-code (#10983)
* manual publish jobs for releases, no changes for nightlies (#10977)
* [blooms-db] Fix benchmarks (#10974)
* Verify transaction against its block during import (#10954)
* Better error message for rpc gas price errors (#10931)
* tx-pool: accept local tx with higher gas price when pool full (#10901)
* Fix fork choice (#10837)
* Cleanup unused vm dependencies (#10787)
* Fix compilation on recent nightlies (#10991)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. B0-patch-stable 🕷 Pull request should also be back-ported to the stable branch. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EIP-2028: Calldata gas cost reduction
4 participants