Skip to content

Commit

Permalink
Use aero endpoints for topology lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
octol committed Nov 5, 2024
1 parent 6440cf2 commit 216fd86
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,11 @@ impl NymApiTopologyProvider {
}

async fn get_current_compatible_topology(&mut self) -> Option<NymTopology> {
#[allow(deprecated)]
let mixnodes = match self
.validator_client
.get_all_basic_active_mixing_assigned_nodes(Some(self.client_version.clone()))
// .get_all_basic_active_mixing_assigned_nodes(Some(self.client_version.clone()))
.get_basic_mixnodes(Some(self.client_version.clone()))
.await
{
Err(err) => {
Expand All @@ -109,9 +111,11 @@ impl NymApiTopologyProvider {
Ok(mixes) => mixes,
};

#[allow(deprecated)]
let gateways = match self
.validator_client
.get_all_basic_entry_assigned_nodes(Some(self.client_version.clone()))
// .get_all_basic_entry_assigned_nodes(Some(self.client_version.clone()))
.get_basic_gateways(Some(self.client_version.clone()))
.await
{
Err(err) => {
Expand Down

0 comments on commit 216fd86

Please sign in to comment.