Post
Topic
Board Development & Technical Discussion
Re: The Lightning Network FAQ
by
darkv0rt3x
on 08/07/2021, 22:06:23 UTC
3. entering two commands (now that i think about it, maybe the first command wouldn't be necessary if my node would be "older"/ better connected)
Just for clarify, the first command was lightning-cli connect and the other one lightning-cli fundchannel. You cannot fund a channel unless you manually connect to the person you want to open a channel with.

i read about "auto-connection in the manpage. i guess you could get away with only the lightning-cli fundchannel command:

Quote from: manpage lightning-fundchannel(7)
DESCRIPTION
       The fundchannel RPC command opens a payment channel with a peer by
       committing a funding transaction to the blockchain as defined in BOLT
       #2.  If not already connected, fundchannel will automatically attempt
       to connect if C-lightning knows a way to contact the node (either from
       normal gossip, or from a previous connect call).
  This auto-connection
       can fail if C-lightning does not know how to contact the target node;
       see lightning-connect(7).  Once the transaction is confirmed, normal
       channel operations may begin. Readiness is indicated by listpeers
       reporting a state of CHANNELD_NORMAL for the channel.

Yeah, I was also talking about that with _Rath. I think I have used fundchannel in the past without using connect before!
Another dual-funded channel here! Smiley