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
@@ -173,10 +173,10 @@ fn get_common_owner(delegations: &[Delegation]) -> Option<Addr> {
}
fn get_common_mix_id(delegations: &[Delegation]) -> Option<NodeId> {
let mix_id = delegations.iter().next()?.node_id;
let mix_id = delegations.iter().next()?.mix_id;
if delegations
.iter()
.any(|delegation| delegation.node_id != mix_id)
.any(|delegation| delegation.mix_id != mix_id)
{
log::warn!("Unexpected different node identities when summing delegations");
return None;