Skip to content
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

0.3.2-81ae2a78 non-determisitic compilation #14

Closed
colm opened this issue May 14, 2016 · 2 comments
Closed

0.3.2-81ae2a78 non-determisitic compilation #14

colm opened this issue May 14, 2016 · 2 comments

Comments

@colm
Copy link

colm commented May 14, 2016

https://gist.github.com/colm/2ddda1e3e825ae6597a7edde43d28f27

nodejs --stack-size=64000 compile_brute_force.jsto test if the compiler returns different bytecode. The byte code is hashed. These hashes are printed. All hashes should match.

This may be a bug in solidity which this PR was ment to resolve.

@chriseth
Copy link
Contributor

Yes, this was supposed to be fixed by the given PR. The version you cite is older than the PR. Can you test with latest develop?

@chriseth
Copy link
Contributor

Confirmed that we now have identical and deterministic compilation at least for the DAO contract both with and without optimizer in the following versions:
0.3.3-4dc1cb14 in solc-js (emscripten architecture) and solc (Linux clang architecture), while compilation in solc-js was even performed multiple times in the same instance.

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

No branches or pull requests

2 participants