We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6452894 + 2ef8221 commit 7384ee4Copy full SHA for 7384ee4
src/config.rs
@@ -32,6 +32,9 @@ pub struct Config {
32
#[clap(long)]
33
/// Path to admin.macaroon file for lnd
34
macaroon_file: Option<String>,
35
+ #[clap(long)]
36
+ /// Include route hints in invoices
37
+ pub route_hints: bool,
38
}
39
40
impl Config {
src/main.rs
@@ -428,6 +428,7 @@ async fn handle_nwc_params(
428
description_hash,
429
value_msat: params.amount as i64,
430
expiry: params.expiry.unwrap_or(86_400) as i64,
431
+ private: config.route_hints,
432
..Default::default()
433
};
434
let res = lnd.add_invoice(inv).await?.into_inner();
0 commit comments