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

Sum representation problem #32

Open
alesl opened this issue Apr 20, 2018 · 0 comments
Open

Sum representation problem #32

alesl opened this issue Apr 20, 2018 · 0 comments

Comments

@alesl
Copy link

alesl commented Apr 20, 2018

For very small values I believe hashes are not calculated correctly because big.js
toString formats it in scientific notation if value is less than 1e-7 or greater than 1e21.
Affected functions are combine_nodes and generate_leaf_hash. Simple solution would be to call toFixed method on big.js.

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

1 participant