You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
about = "Send part of a BOLT11 invoice. Other nodes must send partial payments for the same invoice until the combined amount equals the invoice amount"
252
+
)]
253
+
Bolt11SendUnderpaying{
254
+
#[arg(help = "A BOLT11 invoice for a payment within the Lightning Network")]
255
+
invoice:String,
256
+
#[arg(
257
+
help = "Amount from this payer, for example 50sat or 50000msat. Must be less than the invoice amount"
258
+
)]
259
+
amount:Amount,
260
+
#[arg(
261
+
long,
262
+
help = "Maximum total routing fee, e.g. 50sat or 50000msat. Defaults to 1% of payment + 50 sats"
263
+
)]
264
+
max_total_routing_fee:Option<Amount>,
265
+
#[arg(long, help = "Maximum total CLTV delta we accept for the route (default: 1008)")]
266
+
max_total_cltv_expiry_delta:Option<u32>,
267
+
#[arg(
268
+
long,
269
+
help = "Maximum number of paths that may be used by MPP payments (default: 10)"
270
+
)]
271
+
max_path_count:Option<u32>,
272
+
#[arg(
273
+
long,
274
+
help = "Maximum share of a channel's total capacity to send over a channel, as a power of 1/2 (default: 2)"
275
+
)]
276
+
max_channel_saturation_power_of_half:Option<u32>,
277
+
},
249
278
#[command(about = "Return a BOLT12 offer for receiving payments")]
250
279
Bolt12Receive{
251
280
#[arg(help = "Description to attach along with the offer")]
@@ -765,6 +794,34 @@ async fn main() {
765
794
.await,
766
795
);
767
796
},
797
+
Commands::Bolt11SendUnderpaying{
798
+
invoice,
799
+
amount,
800
+
max_total_routing_fee,
801
+
max_total_cltv_expiry_delta,
802
+
max_path_count,
803
+
max_channel_saturation_power_of_half,
804
+
} => {
805
+
let amount_msat = amount.to_msat();
806
+
let max_total_routing_fee_msat = max_total_routing_fee.map(|a| a.to_msat());
0 commit comments