X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain.rs;h=08bedc70c1b0d4adc3b4bae3ead8def147eb6928;hb=9974201983b9bd457d3b52a7c2393141eeec4485;hp=bfe5bff311517794daa5f7a0207e34955a49af3f;hpb=e0ee4088a951eca37a932b3d50fc7f144658c4d9;p=ldk-sample diff --git a/src/main.rs b/src/main.rs index bfe5bff..08bedc7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -275,11 +275,11 @@ async fn handle_ldk_events( None => String::new(), Some(channel) => { match nodes.get(&NodeId::from_pubkey(&channel.counterparty.node_id)) { - None => " from private node".to_string(), + None => "private node".to_string(), Some(node) => match &node.announcement_info { - None => " from unnamed node".to_string(), + None => "unnamed node".to_string(), Some(announcement) => { - format!(" from node {}", announcement.alias) + format!("node {}", announcement.alias) } }, } @@ -292,9 +292,9 @@ async fn handle_ldk_events( .unwrap_or_default() }; let from_prev_str = - format!("{}{}", node_str(prev_channel_id), channel_str(prev_channel_id)); + format!(" from {}{}", node_str(prev_channel_id), channel_str(prev_channel_id)); let to_next_str = - format!("{}{}", node_str(next_channel_id), channel_str(next_channel_id)); + format!(" to {}{}", node_str(next_channel_id), channel_str(next_channel_id)); let from_onchain_str = if *claim_from_onchain_tx { "from onchain downstream claim"