Skip to content

Commit 7384ee4

Browse files
authored
Merge pull request #3 from 0xsommerfeld/route-hints
2 parents 6452894 + 2ef8221 commit 7384ee4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/config.rs

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ pub struct Config {
3232
#[clap(long)]
3333
/// Path to admin.macaroon file for lnd
3434
macaroon_file: Option<String>,
35+
#[clap(long)]
36+
/// Include route hints in invoices
37+
pub route_hints: bool,
3538
}
3639

3740
impl Config {

src/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ async fn handle_nwc_params(
428428
description_hash,
429429
value_msat: params.amount as i64,
430430
expiry: params.expiry.unwrap_or(86_400) as i64,
431+
private: config.route_hints,
431432
..Default::default()
432433
};
433434
let res = lnd.add_invoice(inv).await?.into_inner();

0 commit comments

Comments
 (0)