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

Gas efficient implementation of winners list #1

Open
juntao opened this issue Jun 12, 2019 · 0 comments
Open

Gas efficient implementation of winners list #1

juntao opened this issue Jun 12, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@juntao
Copy link
Collaborator

juntao commented Jun 12, 2019

Currently, the winner_addresses implementation is very expensive in terms of gas use. We could change that to a winner_indices array that only holds the winner's indices in the player_addresses array. That will dramatically reduce the use of gas when drawing for winners.

@juntao juntao added this to the v2 milestone Jun 12, 2019
@Atlasoin Atlasoin added the v2 label Jun 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants