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

Got 'list index out of range' error #1

Closed
KimiWu123 opened this issue Dec 2, 2019 · 1 comment
Closed

Got 'list index out of range' error #1

KimiWu123 opened this issue Dec 2, 2019 · 1 comment

Comments

@KimiWu123
Copy link

Hi,

I ran your list index out of range.py with default values and got the error,

Traceback (most recent call last):
  File ".\sharding_attack_probability.py", line 136, in <module>
    num_success = gf_coeffs(n_groups, n_per_group, limit_per_group, total_placed)
  File ".\sharding_attack_probability.py", line 54, in gf_coeffs
    total_placed_coeff = int(comb_coeffs[-(total_placed-1)])
IndexError: list index out of range

I changed t=10000 for getting result quicker, and I found value of total_placed is 150 and the length of comb_coeffs is 1. I have no clue what happened. Could you help check it? Thanks.

@KimiWu123
Copy link
Author

It's working if using Python3. Suggest to write it down in README.md.

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