Skip to content

Commit 110d4d1

Browse files
Actualizar knu_token_distribution.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5194321 commit 110d4d1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

scripts/knu_token_distribution.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -364,12 +364,6 @@ def distribute_tokens(self, knot_pool: KNOTPool, knus: List[KNURewardEntry],
364364
i_norm = normalized_impacts[knu.knu_id]
365365
weights[knu.knu_id] = alpha * e_norm + (1 - alpha) * i_norm
366366

367-
# Normalize weights to sum to 1.0
368-
total_weight = sum(weights.values())
369-
if total_weight > 0:
370-
for knu_id in weights:
371-
weights[knu_id] = weights[knu_id] / total_weight
372-
373367
# Distribute tokens T_i = P_k · w_i
374368
for knu in eligible_knus:
375369
knu.weight = weights[knu.knu_id]

0 commit comments

Comments
 (0)