Skip to content

Commit

Permalink
fix missing rustls
Browse files Browse the repository at this point in the history
  • Loading branch information
Einliterflasche committed Dec 10, 2024
1 parent f421c55 commit a3f4317
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions swap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ reqwest = { version = "0.12", features = [
], default-features = false }
rust_decimal = { version = "1", features = [ "serde-float" ] }
rust_decimal_macros = "1"
rustls = "0.23"
serde = { version = "1.0", features = [ "derive" ] }
serde_cbor = "0.11"
serde_json = "1"
Expand Down
6 changes: 6 additions & 0 deletions swap/src/bin/asb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ const DEFAULT_WALLET_NAME: &str = "asb-wallet";

#[tokio::main]
pub async fn main() -> Result<()> {
rustls::crypto::ring::default_provider()
.install_default()
.map_err(|e|
anyhow::anyhow!("failed to install default rustls provider: {:?}", e)
)?;

let Arguments {
testnet,
json,
Expand Down
2 changes: 1 addition & 1 deletion swap/src/bitcoin/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ impl WalletBuilder {
pub async fn build(self) -> Wallet<bdk_wallet::rusqlite::Connection> {
let mut database = Connection::open_in_memory().expect("sqlite in memory to work");

compile_error!("TODO: find a way to populate the database that works with the new bdk version");
panic!("TODO: find a way to populate the database that works with the new bdk version");
// for index in 0..self.num_utxos {
// bdk::populate_test_db!(
// &mut database,
Expand Down

0 comments on commit a3f4317

Please sign in to comment.