-
Notifications
You must be signed in to change notification settings - Fork 127
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
(WIP) Call fixes precompiles #168
Conversation
Added implementation of `ecAdd`, `ecMul`, `ecPairing` precompiles.
@@ -85,7 +85,7 @@ proc prepareChildMessage*( | |||
code, | |||
childOptions) | |||
|
|||
proc applyMessage(computation: var BaseComputation) = | |||
proc applyMessage(computation: var BaseComputation, opCode: static[Op]) = |
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.
If this proc is generic now (due to the static param), it would make sense to extract the parts of it that don't depend on the opCode
param in helper procs (the goal would be the reduce the overall code size).
When the |
…/nimbus into call-fixes-precompiles
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.
Where do the PrecompileTests
come from? I don't see them in https://github.com/ethereum/tests
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.
Do you have any insight as to why these PrecompileTests
mostly work, but the state tests in stPreCompiledContracts2
don't?
… stmt is full now.
5c46dd7
to
4c6a686
Compare
@tersec Calling for review for this work to be merged before continuing on the state tests. |
Regarding |
@mratsim ModExp currently fails all tests except one. Current issues are: 1. Consuming Data Fails assertion when consuming data here: https://github.com/status-im/nimbus/blob/0366dd47d94c07e7d32606343adfda6043b7a59d/nimbus/vm/precompiles.nim#L117
2. Results The remaining tests that don't have the above error are
|
I agree. |
Fix #122, required by #121
I'm opening it the PR to start discussion implementation (or things not implemented) and tests.
A change in
eth_trie
file structure broke the CI: https://travis-ci.org/status-im/nimbus/jobs/437522149#L1050