Skip to content

Commit

Permalink
added psbt::input crate
Browse files Browse the repository at this point in the history
  • Loading branch information
willowens14 committed Aug 28, 2023
1 parent d2b67e1 commit 32fad12
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ readme = "README.md"
license = "MIT"

[dependencies]
# right here set path
bdk = { version = "0.27.1", default-features = false, features = ["all-keys"] }
bdk-macros = "0.6"
clap = { version = "3.2.22", features = ["derive"] }
Expand Down
1 change: 1 addition & 0 deletions src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ pub enum OnlineWalletSubCommand {
#[clap(name = "CONFIRMATIONS", long = "confirmations", default_value = "6")]
confirmations: u32,
},
#[cfg(not(feature = "async-interface"))]
/// Sends a Payjoin Transaction. Takes a valid payjoin bip21 uri.
SendPayjoin {
/// Sets the bip21 uri to send to.
Expand Down
2 changes: 1 addition & 1 deletion src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ use bdk::{database::BatchDatabase, wallet::AddressIndex, Error, FeeRate, Keychai

use clap::Parser;


use bdk::bitcoin::consensus::encode::{deserialize, serialize, serialize_hex};
#[cfg(any(
feature = "electrum",
Expand Down Expand Up @@ -396,6 +395,7 @@ where
Ok(json!({ "spendable": spendable }))
}

#[cfg(not(feature = "async-interface"))]
// Payjoin Logic goes here
SendPayjoin { uri } => {
// convert the bip21 uri into a payjoin uri, and handle error if necessary
Expand Down

0 comments on commit 32fad12

Please sign in to comment.