First you need to transfer some funds to lightningd so that it can open a channel:
# Returns an address
cli/lightning-cli newaddr
# Returns a transaction id
bitcoin-cli sendtoaddress
Related. Where are the private keys located for newaddr, and how do I see a list of addr's currently funded ? I'm running on Mainnet.
When I do
bitcoin-cli listreceivedbyaddress 1 true, I'm not seeing the "newaddr" showing up in bitcoind, and can't seem to find how lightning handles its generated addresses.
Don't feel comfortable funding a newaddr with BTC until I understand the relationship between lightning-cli newaddr and bitcoind addresses.
What happens if my lnd or bitcoind crashes, for example ?
Right now, it's looking to me like I lose all the information. lightningd doesn't even remember the connections I'm previously established when I stop and re-run the daemon
