Skip to content

Commit 119809e

Browse files
author
Drazen Urch
committed
Checkpoint
1 parent 6eed586 commit 119809e

File tree

1 file changed

+3
-0
lines changed
  • validator-api/src/rewarding

1 file changed

+3
-0
lines changed

validator-api/src/rewarding/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ pub(crate) struct MixnodeToReward {
5454

5555
/// Total number of individual addresses that have delegated to this particular node
5656
pub(crate) total_delegations: usize,
57+
/// Node absolute uptime over total active set uptime
58+
pub(crate) performance: Option<f64>
5759
}
5860

5961
#[derive(Debug, Clone)]
@@ -285,6 +287,7 @@ impl Rewarder {
285287
uptime: self
286288
.calculate_absolute_uptime(mix.last_day_ipv4, mix.last_day_ipv6),
287289
total_delegations,
290+
performance: None
288291
})
289292
})
290293
.filter(|node| node.uptime.u8() > 0)

0 commit comments

Comments
 (0)