We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de8d8b3 commit e7188b9Copy full SHA for e7188b9
src/bitcoin/payment.rs
@@ -64,8 +64,14 @@ pub async fn create_payjoin(
64
let original_psbt = sign_original_psbt(wallet, psbt).await?;
65
info!("Original PSBT successfully signed");
66
67
- // TODO use fee_rate
68
- let pj_params = payjoin::send::Configuration::non_incentivizing();
+ let pj_params = match fee_rate {
+ Some(fee_rate) => {
69
+ payjoin::send::Configuration::with_fee_contribution(bitcoin::Amount::ZERO, 0)
70
+ .min_fee_rate_sat_per_vb(fee_rate.as_sat_per_vb())
71
+ }
72
+ None => payjoin::send::Configuration::non_incentivizing(),
73
+ };
74
+
75
let (req, ctx) = pj_uri.create_pj_request(original_psbt.clone(), pj_params)?;
76
info!("Built PayJoin request");
77
let response = reqwest::Client::new()
0 commit comments