You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
I'm going through the get_shuffling() function and I don't quite understand the logic here regarding rand_max. As I understand it, the program says presently that if validator_count > (max_validators / 2) then we should not shuffle and go into an infinite loop.
I assume the infinite loop thing is an extra indentation where there shouldn't be on line 62. However, I don't understand the "don't shuffle if validator_count < rand_max logic" (this condition is true whenever validator_count <= (max_validators / 2)).
Thanks! 🙂
The text was updated successfully, but these errors were encountered:
beacon_chain/beacon_chain/state/state_transition.py
Lines 59 to 62 in 8192419
I'm going through the
get_shuffling()
function and I don't quite understand the logic here regardingrand_max
. As I understand it, the program says presently that ifvalidator_count > (max_validators / 2)
then we should not shuffle and go into an infinite loop.I assume the infinite loop thing is an extra indentation where there shouldn't be on line 62. However, I don't understand the "don't shuffle if
validator_count < rand_max
logic" (this condition is true whenevervalidator_count <= (max_validators / 2)
).Thanks! 🙂
The text was updated successfully, but these errors were encountered: