Feature/field renaming (#1654)

* Replaced serde renames to aliases

Ideally I would have removed all serde macros, but then it would have broken existing QA deployments - perhaps we should do it later

* Renamed 'node_id' in Delegation to 'mix_id'

* Further renamings of 'node_id' to 'mix_id' in various places
This commit is contained in:
Jędrzej Stuczyński
2022-09-23 15:01:39 +01:00
committed by GitHub
parent 996f0bf732
commit 879ce3f2d5
18 changed files with 108 additions and 119 deletions
+2 -2
View File
@@ -119,11 +119,11 @@ impl<C> ValidatorCacheRefresher<C> {
}
}
async fn get_performance(&self, node_id: NodeId, epoch: Interval) -> Option<Performance> {
async fn get_performance(&self, mix_id: NodeId, epoch: Interval) -> Option<Performance> {
self.storage
.as_ref()?
.get_average_mixnode_uptime_in_the_last_24hrs(
node_id,
mix_id,
epoch.current_epoch_end_unix_timestamp(),
)
.await