I am playing around with the lightning implementation from https://github.com/ElementsProject/lightning and after the following steps the cli-client cannot list funds which I deposited at the generated address from the internal wallet
- I installed bitcoind-0.16 and fully synced the mainnet-blockchain
- I installed c-lightning and synced with the local full node
- I generated a new address with
./lightning-cli newaddr
- I funded this address from my Electrum wallet (not from the local node wallet) and saw the incoming transaction with
./lightning-cli listfunds
- Then I accidentally deleted the file
.lightning/lightningd.sqlite3
- After restart the lightningd recreated the file but now
./lightning-cli listfunds
is showing empty results but the funds have to be there because the funding transaction is visible in the blockchain.
I investigated ./lightning-cli dev-listaddrs
which shows all addresses of the internal wallet and there is my funding address. So I think I need to re-sync the lightningd with the bitcoin blockchain, but a ./lightning-cli dev-rescan-outputs
had no success.
What can I do to be able to see and spend the funds again? Or, how can I get the seed/private key of the internal (lightning) wallet?