-
Notifications
You must be signed in to change notification settings - Fork 765
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
Add frontier support #828
Add frontier support #828
Conversation
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
It seems that the block package will need some changes too (Homestead changed the difficulty algorithm). The Tx changes seem to be available already. After 51c7099: (note: currently due to how tests work the test pass amount stays the same, but only the fail amount will decrease)
After e9b70f1:
|
Linking some Geth code here for reference (what happens if a CREATE message (either by normal message call or via |
Changed the base so it will be easier to review this one. |
17e0b70
to
b303a21
Compare
bc4f199
to
8546612
Compare
@jochem-brouwer: |
e9b70f1
to
c7ef60f
Compare
Rebased this, @jochem-brouwer let me know if this was a counter service (in german we would say: "Bärendienst", bear service) and it rather messed something up, was intended to be some supportive task though. 😄 |
c7ef60f
to
0ab41f1
Compare
Rebased this on top of #833 and added |
packages/vm/lib/evm/evm.ts
Outdated
} else { | ||
// we are in chainstart and the error was the code deposit error | ||
// we do like nothing happened. | ||
this._state.commit() |
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.
hm do we need an await
here?
this._state.commit() | |
await this._state.commit() |
69926b6
to
46bdd46
Compare
Tests pass! Most errors where actually in the test suite, not in the code (with a few exceptions). Really good to see that most of the code of Frontier was already in |
[VM] tests: only check last block header on the last block [VM] await state commit
46bdd46
to
0f4e222
Compare
Rebased this. |
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.
Went through the changes on a commit basis and had a look at the test output, this actually looks good now.
All HFs implemented. Congratulations @jochem-brouwer, great work!!! 🎊 😀
(ah, except from the DAO, I wonder if we shouldn't really do this and complete here, this shouldn't be too much work? 🤔 ) Here are the I would think core parts of the geth implementation. EIP for the DAO HF is EIP-779. |
Yeah we should do it, if you want I can start on this tomorrow? If it turns out to be rather complex it should not be something which blocks the V5 release though. (But it seems to be rather easy). |
That would be great! 😄 |
Builds upon #815
Linked issue: #652