From: Jeffrey Czyz Date: Wed, 12 May 2021 18:35:26 +0000 (-0700) Subject: Merge pull request #11 from valentinewallace/expose-channel-publicness X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-sample;a=commitdiff_plain;h=c3218f27e26b5bc5e684fd967ce80546675104a9;hp=-c Merge pull request #11 from valentinewallace/expose-channel-publicness Indicate whether a channel is public in `listchannels` --- c3218f27e26b5bc5e684fd967ce80546675104a9 diff --combined src/cli.rs index c0aad15,2ea7271..36b9704 --- a/src/cli.rs +++ b/src/cli.rs @@@ -391,14 -391,16 +391,16 @@@ pub(crate) async fn poll_for_user_input } fn help() { - println!("openchannel pubkey@host:port "); + println!("openchannel pubkey@host:port "); println!("sendpayment "); - println!("getinvoice "); + println!("getinvoice "); println!("connectpeer pubkey@host:port"); println!("listchannels"); println!("listpayments"); println!("closechannel "); println!("forceclosechannel "); + println!("nodeinfo"); + println!("listpeers"); } fn node_info(channel_manager: Arc, peer_manager: Arc) { @@@ -441,6 -443,7 +443,7 @@@ fn list_channels(channel_manager: Arc { println!("EVENT: initiated channel with peer {}. ", peer_pubkey); return Ok(()); @@@ -672,7 -675,8 +675,7 @@@ pub(crate) fn parse_peer_info if peer_addr_str.is_none() || peer_addr_str.is_none() { return Err(std::io::Error::new( std::io::ErrorKind::Other, - "ERROR: incorrectly formatted peer - info. Should be formatted as: `pubkey@host:port`", + "ERROR: incorrectly formatted peer info. Should be formatted as: `pubkey@host:port`", )); }