AlexNijjar commited on
Commit
f6f4fa7
·
1 Parent(s): 4a70df5

Ensure miner uid has incentive

Browse files
Files changed (1) hide show
  1. src/validator_weights.py +2 -0
src/validator_weights.py CHANGED
@@ -54,6 +54,8 @@ def create_weights(include_inactive: bool) -> gr.Dataframe:
54
  datatype.append("markdown")
55
 
56
  for miner_uid, validator_weights in enumerate(weights):
 
 
57
  incentive = INCENTIVES[miner_uid]
58
  row = [miner_uid, f"<span style='color: {get_color_by_weight(incentive)}'>{incentive:.{3}f}</span>"]
59
  for _, weight in validator_weights:
 
54
  datatype.append("markdown")
55
 
56
  for miner_uid, validator_weights in enumerate(weights):
57
+ if miner_uid not in INCENTIVES:
58
+ break
59
  incentive = INCENTIVES[miner_uid]
60
  row = [miner_uid, f"<span style='color: {get_color_by_weight(incentive)}'>{incentive:.{3}f}</span>"]
61
  for _, weight in validator_weights: