Skip to content

Commit

Permalink
added alias for announced channels
Browse files Browse the repository at this point in the history
  • Loading branch information
toneloc committed Oct 21, 2024
1 parent 2e71671 commit 549f619
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ fn make_node(alias: &str, port: u16, lsp_pubkey:Option<PublicKey>) -> ldk_node::
// builder.set_gossip_source_rgs("https://mutinynet.ltbl.io/snapshot".to_string());
builder.set_storage_dir_path(("./data/".to_owned() + alias).to_string());
let _ = builder.set_listening_addresses(vec![format!("127.0.0.1:{}", port).parse().unwrap()]);
let _ = builder.set_node_alias("some_alias".to_string()); // needed to open announced channel since LDK 0.4.0

let node = builder.build().unwrap();
node.start().unwrap();
Expand Down Expand Up @@ -322,6 +323,8 @@ fn main() {
let (_input, command, args) = get_user_input("Enter command for user: ");

match (command.as_deref(), args.as_slice()) {
(Some("opreturn"), [their_offer_str]) => {
}
(Some("settheiroffer"), [their_offer_str]) => {
their_offer = Some(Offer::from_str(&their_offer_str).unwrap());
println!("Offer set.")
Expand Down

0 comments on commit 549f619

Please sign in to comment.