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 }}
Repository navigation
ADR 008: Division by zero in reporter weight at network bootstrap #63
At network bootstrap, max_settled_channels_observed is 0 (no channels have been settled yet). This causes a division by zero.
Impact:
First reputation report submitted to the network crashes the scoring logic or produces undefined behavior depending on implementation.
Recommendation:
Add a guard clause:
let reporter_weight = if max_settled_channels_observed == 0{1.0// equal weighting during bootstrap}else{settled_channels(reporter)asf64 / max_settled_channels_observed asf64};
Activity
docs: fix network and reputation issues (#71, #70, #25, #6, #77, #63, #…