Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add missing channel_config argument in README example for connect_open_channel

```pub fn connect_open_channel(&**self**, node_id: PublicKey, address: NetAddress, channel_amount_sats: u64, push_to_counterparty_msat: Option<u64>, channel_config: Option<ChannelConfig>, announce_channel: bool) -> Result<(), Error>```
  • Loading branch information
AustinKelsay committed Jul 3, 2023
1 parent 92ff8e9 commit 58d0983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn main() {

let node_id = PublicKey::from_str("NODE_ID").unwrap();
let node_addr = NetAddress::from_str("IP_ADDR:PORT").unwrap();
node.connect_open_channel(node_id, node_addr, 10000, None, false).unwrap();
node.connect_open_channel(node_id, node_addr, 10000, None, None, false).unwrap();

let event = node.wait_next_event();
println!("EVENT: {:?}", event);
Expand Down

0 comments on commit 58d0983

Please sign in to comment.