Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

EIP-2028: Set tx data nonzero byte cost to 16 in Istanbul #5691

Merged
merged 1 commit into from
Jul 22, 2019

Conversation

gumb0
Copy link
Member

@gumb0 gumb0 commented Jul 22, 2019

@gumb0 gumb0 force-pushed the txdata-cost-reduction branch from b8159f3 to 0689989 Compare July 22, 2019 11:00
@codecov-io
Copy link

Codecov Report

Merging #5691 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5691      +/-   ##
==========================================
+ Coverage   62.98%   62.99%   +0.01%     
==========================================
  Files         350      350              
  Lines       29991    29993       +2     
  Branches     3361     3361              
==========================================
+ Hits        18889    18894       +5     
+ Misses       9882     9881       -1     
+ Partials     1220     1218       -2

@gumb0 gumb0 requested review from chfast and halfalicious July 22, 2019 12:01
@gumb0 gumb0 merged commit 8d7b0dc into master Jul 22, 2019
@gumb0 gumb0 deleted the txdata-cost-reduction branch July 22, 2019 12:03
@chfast
Copy link
Member

chfast commented Jul 22, 2019

Please reference this change in the EIP.

@gumb0
Copy link
Member Author

gumb0 commented Jul 22, 2019

Posted a link on ethmagicians discussion thread

@holiman
Copy link
Contributor

holiman commented Aug 6, 2019

Regarding implementing this in geth, we see a minor snag with transaction pools -- if they start accepting istanbul-priced txs too early, that's a DoS vector. So we're probably making 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.
I see you did not touch anything in that area -- is that not a concern for aleth ?

@gumb0
Copy link
Member Author

gumb0 commented Aug 6, 2019

It looks like we don't check intrinsic gas at all when adding to the transaction pool.

@holiman Could you point me to the the area of geth code where this happens?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement EIP-2028 Transaction data gas cost reduction
4 participants