|
48 | 48 | //! |
49 | 49 | //! let node_id = PublicKey::from_str("NODE_ID").unwrap(); |
50 | 50 | //! let node_addr = NetAddress::from_str("IP_ADDR:PORT").unwrap(); |
51 | | -//! node.connect_open_channel(node_id, node_addr, 10000, None, false).unwrap(); |
| 51 | +//! node.connect_open_channel(node_id, node_addr, 10000, None, None, false).unwrap(); |
52 | 52 | //! |
53 | 53 | //! let event = node.wait_next_event(); |
54 | 54 | //! println!("EVENT: {:?}", event); |
@@ -1369,7 +1369,8 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> { |
1369 | 1369 | /// Returns a temporary channel id. |
1370 | 1370 | pub fn connect_open_channel( |
1371 | 1371 | &self, node_id: PublicKey, address: NetAddress, channel_amount_sats: u64, |
1372 | | - push_to_counterparty_msat: Option<u64>, announce_channel: bool, |
| 1372 | + push_to_counterparty_msat: Option<u64>, channel_config: Option<ChannelConfig>, |
| 1373 | + announce_channel: bool, |
1373 | 1374 | ) -> Result<(), Error> { |
1374 | 1375 | let rt_lock = self.runtime.read().unwrap(); |
1375 | 1376 | if rt_lock.is_none() { |
@@ -1404,6 +1405,7 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> { |
1404 | 1405 | announced_channel: announce_channel, |
1405 | 1406 | ..Default::default() |
1406 | 1407 | }, |
| 1408 | + channel_config: channel_config.unwrap_or_default(), |
1407 | 1409 | ..Default::default() |
1408 | 1410 | }; |
1409 | 1411 |
|
|
0 commit comments