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

Document gas measuring for releasing #508

Merged
merged 1 commit into from
Feb 4, 2019

Conversation

pirapira
Copy link
Contributor

@pirapira pirapira commented Feb 4, 2019

This fixes #492.

[no ci] <-- seems not working #507


pytest -s raiden_contracts/tests/test_print_gas.py

The script prints many numbers like
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pirapira Wouldn't it make more sense to remake the script into measure_gas.py and have it auto-generate the constants.py for you instead of you manually creating by copying the output of the script?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's #16.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good then!

@pirapira pirapira merged commit 3525272 into raiden-network:master Feb 4, 2019
@pirapira pirapira deleted the protocol-gas-change branch February 4, 2019 17:46
@hackaugusto
Copy link
Contributor

I don't think this should have been merged, the gas cost will change with the version of the smart contract, so this data should go into the json (which has the additional benefit of working with other languages, besides python)

@LefterisJP
Copy link
Contributor

@hackaugusto That's also a nice idea -- but perhaps going for other language other than python may be a premature optimization at the moment. But according to @pirapira 's comment above I understand that what this PR documents is temporary and the "real thing" approach is discussed and documented in this issue

@pirapira
Copy link
Contributor Author

pirapira commented Feb 5, 2019

@hackaugusto I do document the current ugly approach before changing it.

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

Successfully merging this pull request may close these issues.

Document the gas cost update process
3 participants