Skip to content

Commit d3a7575

Browse files
committed
Revert "fix: burn only unresolved portion within challenge's emission share"
This reverts commit 8c53032.
1 parent 8c53032 commit d3a7575

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bins/validator-node/src/main.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ async fn main() -> Result<()> {
16101610
let v = (w * 65535.0).round() as u16;
16111611
if v > 0 { uids.push(*uid); vals.push(v); }
16121612
}
1613-
let burn = ew - assigned;
1613+
let burn = 1.0 - assigned;
16141614
if burn > 0.001 {
16151615
let bv = (burn * 65535.0).round() as u16;
16161616
if let Some(pos) = uids.iter().position(|&u| u == 0) {
@@ -3749,9 +3749,8 @@ async fn handle_block_event(
37493749
}
37503750
}
37513751

3752-
// Burn only the unresolved portion within this challenge's emission share.
3753-
// Previously: 1.0 - assigned_weight (wrong: burned OTHER challenges' share)
3754-
let burn_weight = emission_weight - assigned_weight;
3752+
// Remaining weight goes to burn (UID 0)
3753+
let burn_weight = 1.0 - assigned_weight;
37553754
if burn_weight > 0.001 {
37563755
let burn_u16 = (burn_weight * 65535.0).round() as u16;
37573756
if let Some(pos) = uids.iter().position(|&u| u == 0) {

0 commit comments

Comments
 (0)