Commit 4a41d76
committed
fix(validator): add missing emission to burn to preserve weight proportions
When total emission_weight from healthy challenges is < 1.0, the
difference must be added to burn (UID 0) BEFORE normalization.
This ensures each challenge's weights maintain their correct proportion:
- term-challenge (emission=0.5, weight=1.0) -> 50% (not 66%)
- bounty-challenge (emission=0.25) -> 25% total
- Missing emission (0.25) -> burn
Previously, normalization by total accumulated weight (0.75) would
incorrectly inflate all weights proportionally.1 parent dcc363f commit 4a41d76
1 file changed
+33
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1019 | 1019 | | |
1020 | 1020 | | |
1021 | 1021 | | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
1022 | 1053 | | |
1023 | 1054 | | |
1024 | 1055 | | |
| |||
1027 | 1058 | | |
1028 | 1059 | | |
1029 | 1060 | | |
1030 | | - | |
| 1061 | + | |
1031 | 1062 | | |
1032 | 1063 | | |
1033 | 1064 | | |
| |||
1040 | 1071 | | |
1041 | 1072 | | |
1042 | 1073 | | |
| 1074 | + | |
1043 | 1075 | | |
1044 | 1076 | | |
1045 | 1077 | | |
| |||
0 commit comments