Allow connections to LND over clearnet
-
Edit ~/citadel/lnd/lnd.conf, set
tor.active=0 -
Restart LND container with
docker restart lightning
Make sure Citadel is running before starting Polar so that ports aren't occupied.
- Open Polar, start a Bitcoin node and right click -> "Launch Terminal"
- Connect to Citadel's Bitcoin node
bitcoin-cli addnode "172.17.0.1:8333" "add"- Verify the connection
bitcoin-cli getconnectioncount- Start mining some blocks
citadel auto-mineor click "Quick Mine" in Polar
You should see synchronized block height on both nodes (you may have to refresh Polar)
Add some funds to your wallets
citadel fund- Click on the Lightning node you want to open a channel with in with in Polar
- On the right, click on the "Connect" tab and copy "P2P External"
- Replace the IP with
172.17.0.1 - Paste into "Open Channel" UI
- Look up Citadel's node key with
lncli getinfo | jq .identity_pubkey -ror find it in the UI - Find the Lightning node you want to open a channel from in Polar, right click -> "Launch Terminal"
- Connect nodes
- LND:
lncli connect <node_key>@172.17.0.1 - CLN:
lightning-cli connect <node_key>@172.17.0.1 - Eclair:
eclair-cli connect --uri=<node_key>@172.17.0.1
- LND:
- Open a channel
- LND:
lncli openchannel <node_key> 1000000 - CLN:
lightning-cli fundchannel <node_key> 1000000 - Eclair:
eclair-cli open --nodeId=<node_key> --fundingSatoshis=1000000
- LND:
If you find that your Polar nodes don't have a large enough balance, try opening some channels in Polar first and it will fund them for you.
tbd