diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 0422a93..d48e189 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "nightly-2024-05-13" +channel = "nightly-2024-09-25" components = ["rustfmt", "clippy"] profile = "default" diff --git a/src/core.rs b/src/core.rs index d453826..a3873a0 100644 --- a/src/core.rs +++ b/src/core.rs @@ -314,7 +314,8 @@ impl HarborCore { async fn get_federation_info(&self, invite_code: InviteCode) -> anyhow::Result { let download = Instant::now(); - let config = fedimint_api_client::download_from_invite_code(&invite_code) + let config = fedimint_api_client::api::net::Connector::Tor + .download_from_invite_code(&invite_code) .await .map_err(|e| { error!("Could not download federation info: {e}"); diff --git a/src/fedimint_client.rs b/src/fedimint_client.rs index d9c73e2..2510ee4 100644 --- a/src/fedimint_client.rs +++ b/src/fedimint_client.rs @@ -80,6 +80,8 @@ impl FedimintClient { let is_initialized = fedimint_client::Client::is_initialized(&db.clone().into()).await; let mut client_builder = fedimint_client::Client::builder(db.into()).await?; + client_builder.with_tor_connector(); + client_builder.with_module(WalletClientInit(None)); client_builder.with_module(MintClientInit); client_builder.with_module(LightningClientInit::default()); @@ -99,9 +101,10 @@ impl FedimintClient { e })?, ) - } else if let FederationInviteOrId::Invite(i) = invite_or_id { + } else if let FederationInviteOrId::Invite(invite_code) = invite_or_id { let download = Instant::now(); - let config = fedimint_api_client::download_from_invite_code(&i) + let config = fedimint_api_client::api::net::Connector::Tor + .download_from_invite_code(&invite_code) .await .map_err(|e| { error!("Could not download federation info: {e}");