raspiblitz / raspiblitz

Get your own Bitcoin & Lightning Node running - on a RaspberryPi with a nice LCD
MIT License
2.46k stars 521 forks source link

CLN add peers manually when peers 0 #4843

Open rootzoll opened 5 days ago

rootzoll commented 5 days ago

On several testnodes with CLN it stayed with 0 peers for looong time. And the LCD already showed ready, while the SSH menu was still showing the sync page. WebUI only showed spinning loading.

The background service should add peers to CLN & LND when "0 peeers" like it does for BTC. Sync screens should show a waiting for peers. screen with options to "enter manually" or "deactivate LN".

rootzoll commented 3 days ago

To get a list of Fallback Lightning nodes ... just take a LND with a fully snyced network graph and call:

lncli describegraph | jq -r '.nodes[] | select(.addresses != null and (.addresses[0].addr | type == "string")) | select(.addresses[0].addr | test("^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+:[0-9]+$")) | "\(.pub_key)@\(.addresses[0].addr)"' > fallback.lightning.nodes

take that file and put into RaspiBlitz github assets folder and then yuse for CLN & LND peerkickstart as its done for bitcoin.