Skip to content

Commit

Permalink
Bump bdk version to 0.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thunderbiscuit committed Nov 7, 2022
1 parent 73ba73f commit 29de6f2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ license = "MIT OR Apache-2.0"
members = [".","bdk-ffi-bindgen"]
default-members = [".", "bdk-ffi-bindgen"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["staticlib", "cdylib"]
name = "bdkffi"

[dependencies]
bdk = { version = "0.23", features = ["all-keys", "use-esplora-ureq", "sqlite-bundled"] }
bdk = { version = "0.24", features = ["all-keys", "use-esplora-ureq", "sqlite-bundled"] }

uniffi_macros = { version = "0.21.0", features = ["builtin-bindgen"] }
uniffi = { version = "0.21.0", features = ["builtin-bindgen"] }
Expand Down
2 changes: 1 addition & 1 deletion src/bdk.udl
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ enum BdkError {
"ProgressUpdateError",
"InvalidOutpoint",
"Descriptor",
"AddressValidator",
"Encode",
"Miniscript",
"MiniscriptPsbt",
"Bip32",
"Secp256k1",
"Json",
Expand Down
17 changes: 9 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use bdk::bitcoin::secp256k1::Secp256k1;
use bdk::bitcoin::util::bip32::DerivationPath as BdkDerivationPath;
use bdk::bitcoin::util::psbt::serialize::Serialize;
use bdk::bitcoin::util::psbt::PartiallySignedTransaction;
use bdk::bitcoin::Sequence;
use bdk::bitcoin::{Address as BdkAddress, Network, OutPoint as BdkOutPoint, Txid};
use bdk::blockchain::any::{AnyBlockchain, AnyBlockchainConfig};
use bdk::blockchain::GetBlockHash;
Expand Down Expand Up @@ -758,7 +759,7 @@ impl TxBuilder {
tx_builder.enable_rbf();
}
RbfValue::Value(nsequence) => {
tx_builder.enable_rbf_with_sequence(nsequence);
tx_builder.enable_rbf_with_sequence(Sequence(nsequence));
}
}
}
Expand Down Expand Up @@ -844,7 +845,7 @@ impl BumpFeeTxBuilder {
tx_builder.enable_rbf();
}
RbfValue::Value(nsequence) => {
tx_builder.enable_rbf_with_sequence(nsequence);
tx_builder.enable_rbf_with_sequence(Sequence(nsequence));
}
}
}
Expand Down Expand Up @@ -947,7 +948,7 @@ impl DescriptorSecretKey {
descriptor_secret_key_mutex: Mutex::new(derived_descriptor_secret_key),
}))
}
BdkDescriptorSecretKey::SinglePriv(_) => {
BdkDescriptorSecretKey::Single(_) => {
unreachable!()
}
}
Expand All @@ -969,7 +970,7 @@ impl DescriptorSecretKey {
descriptor_secret_key_mutex: Mutex::new(extended_descriptor_secret_key),
})
}
BdkDescriptorSecretKey::SinglePriv(_) => {
BdkDescriptorSecretKey::Single(_) => {
unreachable!()
}
}
Expand All @@ -981,7 +982,7 @@ impl DescriptorSecretKey {
.descriptor_secret_key_mutex
.lock()
.unwrap()
.as_public(&secp)
.to_public(&secp)
.unwrap();
Arc::new(DescriptorPublicKey {
descriptor_public_key_mutex: Mutex::new(descriptor_public_key),
Expand All @@ -995,7 +996,7 @@ impl DescriptorSecretKey {
BdkDescriptorSecretKey::XPrv(descriptor_x_key) => {
descriptor_x_key.xkey.private_key.secret_bytes().to_vec()
}
BdkDescriptorSecretKey::SinglePriv(_) => {
BdkDescriptorSecretKey::Single(_) => {
unreachable!()
}
};
Expand Down Expand Up @@ -1035,7 +1036,7 @@ impl DescriptorPublicKey {
descriptor_public_key_mutex: Mutex::new(derived_descriptor_public_key),
}))
}
BdkDescriptorPublicKey::SinglePub(_) => {
BdkDescriptorPublicKey::Single(_) => {
unreachable!()
}
}
Expand All @@ -1057,7 +1058,7 @@ impl DescriptorPublicKey {
descriptor_public_key_mutex: Mutex::new(extended_descriptor_public_key),
})
}
BdkDescriptorPublicKey::SinglePub(_) => {
BdkDescriptorPublicKey::Single(_) => {
unreachable!()
}
}
Expand Down

0 comments on commit 29de6f2

Please sign in to comment.