c-lightning - Unknown Peer I'm trying to create a channel using c-lighting (testnet), but I keep getting an Unknown Peer error message.


I used cli/lightning-cli connect which seemed to work fine.
I used cli/lightning-cli listnodes and I see whole bunch of nodes.
I used cli/lightning-cli listpeers and I see 1 peer.
I used cli/lightning-cli newaddr to create a new address and funded it (3 confirms so far)
I then try to use cli/lightning-cli fundchannel and I get an Unknown Peer message.
Everything but the last Comand looks correct. There is no command channel in c-lightning. In order to open a channel you need to execute

cli/lightning-cli fundchannel id satoshi [feerate] [announce] [minconf]
  Fund channel with {id} using {satoshi} (or 'all') satoshis, at optional {feerate}. Only use outputs that have {minconf} confirmations.


The thing that beginners sometimes oversee is that before opening a channel with a node you need to peer with it first via the connect command like you did.