Conversation
Codecov Report
@@ Coverage Diff @@
## master #5700 +/- ##
==========================================
+ Coverage 63.22% 63.28% +0.06%
==========================================
Files 353 353
Lines 30276 30322 +46
Branches 3390 3392 +2
==========================================
+ Hits 19142 19190 +48
Misses 9898 9898
+ Partials 1236 1234 -2 |
3c5189b to
64a3989
Compare
|
This is rebased and ready for review. |
|
Rebased. EIP is Accepted now, please review @chfast @halfalicious |
|
@gumb0 For reference, why was the account versioning EIP bumped from Istanbul? |
| void testSelfBalanceisInvalidBeforeIstanbul() | ||
| { | ||
| se.reset(ChainParams(genesisInfo(Network::ConstantinopleFixTest)).createSealEngine()); | ||
| version = ConstantinopleFixSchedule.accountVersion; |
There was a problem hiding this comment.
How come the account version is available in the Constantinople Fix schedule..do we need to reference it in this test since from what I understand it's been punted to post-Istanbul?
There was a problem hiding this comment.
Versioning still exists in the code for all forks, with version being 0 in all forks before we activate version 1 (currently it's Experimental fork)
This line is actually redundant.
|
Should we also add the following tests from the EIP:
|
halfalicious
left a comment
There was a problem hiding this comment.
Approved with some minor questions not worth blocking merging for
|
@halfalicious Re account versioning: for now it's decided that no changes accepted for Istanbul are radical enough to put them under versioning. Actually I'm not sure anymore it will be ever needed. |
https://eips.ethereum.org/EIPS/eip-1884
Note that it puts repricing andSELFBALANCEbehind account versioning, i.e. reduced costs and the new opcode will be active only in contracts deployed with external transaction after Istanbul fork.If it's decided that it should be in effect for version 0, we'll need to introduce anotherEVMSchedule("between" currentConstantinopleFixScheduleandIstanbulSchedule)Account versioning is disabled in Istanbul.