Is PeerSwap still supported with CLN?
Describe the bug I see traces of support for PeerSwap with CLN in the configuration documentation, and in the codebase, but it also looks like the functionality has been removed in part:
https://github.com/Ride-The-Lightning/RTL/blob/7a03673e6e26181b9f469d9c27ac24b07f9f3f48/src/app/shared/models/navMenu.ts#L69
Is the PeerSwap interface still supported? If not, what would it take to reinstate? It looks like some of the messaging to the user suggests that peerswapd should be running on the node, but after setting up PeerSwap as per the latest install documentation, it's running as a CLN plugin process.
https://github.com/Ride-The-Lightning/RTL/blob/7a03673e6e26181b9f469d9c27ac24b07f9f3f48/src/app/shared/components/node-config/services-settings/peerswap-service-settings/peerswap-service-settings.component.html#L4
To Reproduce Steps to reproduce the behavior:
- Install and configure PeerSwap, and Elements
- Configure them together
- Alter RTL node config to set
enablePeerswaptotrue - Restart services and load RTL
- Observe PeerSwap missing from the Services navigation.
Screenshots If applicable, add screenshots to help explain your problem.
Your environment
- Version of
RTL:0.15.4-beta - Version of
lnd/core lightning/eclair:v25.02.2 - Version of
btcd,bitcoind, or other backend:29.0 - Browser & browser version
- Operating system (
uname -aon *Nix): Ubuntu 24.04 - any other relevant environment details
Additional context
Curious to know why the disable and if there are concrete steps to reinstating, perhaps I could help out.
Hi @s373nZ this code was added for PoC testing. Before it can be formally enabled on RTL, it needs to be launched on Core Lightning. I am not aware of the current status/priority of PeerSwap on Core Lightning.
Thanks for the reply @saubyk. I'm just diving into PeerSwap myself, so don't have all the information, but I've setup PeerSwap on my CLN node according to these instructions from the documentation:
https://github.com/ElementsProject/peerswap/blob/master/docs/setup_cln.md
To note, on CLN, it runs as a Core Lightning plugin process, not a separate peerswapd daemon, which I see references to in the code. So, seems to me like it has already been launched for CLN, but I don't know what that means for the RTL integration. Would love to see it in the interface, though!
on CLN, it runs as a Core Lightning plugin process, not a separate peerswapd daemon
Ah I see, this would definitely require some change in RTL to run. Will investigate further.
cc: @ShahanaFarooqui