mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Merge #426
426: Upgrade to bdk 0.6 r=thomaseizinger a=thomaseizinger Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
This commit is contained in:
commit
56a23fa98f
5
Cargo.lock
generated
5
Cargo.lock
generated
@ -279,8 +279,9 @@ checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bdk"
|
name = "bdk"
|
||||||
version = "0.5.2-dev"
|
version = "0.6.0"
|
||||||
source = "git+https://github.com/bitcoindevkit/bdk.git?rev=e5ecc7f#e5ecc7f5410aea9d7a108a46d01c7a2fa0822bb7"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "51dcf686dfc6200d641e8619019c027976533b7e2d5c00de2b4182c88287a18b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"bdk-macros",
|
"bdk-macros",
|
||||||
|
@ -15,7 +15,7 @@ async-trait = "0.1"
|
|||||||
atty = "0.2"
|
atty = "0.2"
|
||||||
backoff = { version = "0.3", features = ["tokio"] }
|
backoff = { version = "0.3", features = ["tokio"] }
|
||||||
base64 = "0.13"
|
base64 = "0.13"
|
||||||
bdk = { git = "https://github.com/bitcoindevkit/bdk.git", rev = "e5ecc7f" }
|
bdk = "0.6"
|
||||||
big-bytes = "1"
|
big-bytes = "1"
|
||||||
bitcoin = { version = "0.26", features = ["rand", "use-serde"] }
|
bitcoin = { version = "0.26", features = ["rand", "use-serde"] }
|
||||||
bmrng = "0.5"
|
bmrng = "0.5"
|
||||||
|
@ -43,8 +43,8 @@ impl Wallet {
|
|||||||
let db = bdk::sled::open(wallet_dir)?.open_tree(SLED_TREE_NAME)?;
|
let db = bdk::sled::open(wallet_dir)?.open_tree(SLED_TREE_NAME)?;
|
||||||
|
|
||||||
let wallet = bdk::Wallet::new(
|
let wallet = bdk::Wallet::new(
|
||||||
bdk::template::BIP84(key.clone(), KeychainKind::External),
|
bdk::template::Bip84(key.clone(), KeychainKind::External),
|
||||||
Some(bdk::template::BIP84(key, KeychainKind::Internal)),
|
Some(bdk::template::Bip84(key, KeychainKind::Internal)),
|
||||||
env_config.bitcoin_network,
|
env_config.bitcoin_network,
|
||||||
db,
|
db,
|
||||||
ElectrumBlockchain::from(client),
|
ElectrumBlockchain::from(client),
|
||||||
|
Loading…
Reference in New Issue
Block a user