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
The condition "consensus_high <= consensus_low || alpha_low == 0 || alpha_high == 0" is to check for disallowed values, not for division by zero; moreover, division by zero is handled by saturation arithmetic operators.
The text was updated successfully, but these errors were encountered:
Saturation maths would not prevent division by zero, as this check helps enforce the sanity checks . I would rather enforce more restrictions (i.e. program defensively) , as in the rare chance a 0 division does get past , the runtime will panic
subtensor/pallets/subtensor/src/epoch.rs
Line 839 in b836401
The condition "consensus_high <= consensus_low || alpha_low == 0 || alpha_high == 0" is to check for disallowed values, not for division by zero; moreover, division by zero is handled by saturation arithmetic operators.
The text was updated successfully, but these errors were encountered: