X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fcli.rs;h=36b97047cb36ca26055b15809ceaabaf61a1b7d7;hb=c3218f27e26b5bc5e684fd967ce80546675104a9;hp=c8c14f2f6c007016bca07f63aaf77eeb0cec1ab1;hpb=0878cb69e0e575c0e834c59e170a3ee2823325e9;p=ldk-sample diff --git a/src/cli.rs b/src/cli.rs index c8c14f2..36b9704 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -443,6 +443,7 @@ fn list_channels(channel_manager: Arc) { println!("\t\tavailable_balance_for_recv_msat: {},", chan_info.inbound_capacity_msat); } println!("\t\tchannel_can_send_payments: {},", chan_info.is_usable); + println!("\t\tpublic: {},", chan_info.is_public); println!("\t}},"); } println!("]"); @@ -545,7 +546,7 @@ fn open_channel( } // lnd's max to_self_delay is 2016, so we want to be compatible. config.peer_channel_config_limits.their_to_self_delay = 2016; - match channel_manager.create_channel(peer_pubkey, channel_amt_sat, 0, 0, None) { + match channel_manager.create_channel(peer_pubkey, channel_amt_sat, 0, 0, Some(config)) { Ok(_) => { println!("EVENT: initiated channel with peer {}. ", peer_pubkey); return Ok(()); @@ -674,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`", )); }