Skip to content

Commit 549f619

Browse files
author
toneloc
committed
added alias for announced channels
1 parent 2e71671 commit 549f619

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.rs

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ fn make_node(alias: &str, port: u16, lsp_pubkey:Option<PublicKey>) -> ldk_node::
5757
// builder.set_gossip_source_rgs("https://mutinynet.ltbl.io/snapshot".to_string());
5858
builder.set_storage_dir_path(("./data/".to_owned() + alias).to_string());
5959
let _ = builder.set_listening_addresses(vec![format!("127.0.0.1:{}", port).parse().unwrap()]);
60+
let _ = builder.set_node_alias("some_alias".to_string()); // needed to open announced channel since LDK 0.4.0
6061

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

324325
match (command.as_deref(), args.as_slice()) {
326+
(Some("opreturn"), [their_offer_str]) => {
327+
}
325328
(Some("settheiroffer"), [their_offer_str]) => {
326329
their_offer = Some(Offer::from_str(&their_offer_str).unwrap());
327330
println!("Offer set.")

0 commit comments

Comments
 (0)