feat: 2-hop swaps (u→m→v) + channel_adjacency poll hint#422
feat: 2-hop swaps (u→m→v) + channel_adjacency poll hint#422YusukeShimizu wants to merge 7 commits intoElementsProject:masterfrom
Conversation
Implements 2-hop swap negotiation and pinned 2-hop payments (u→m→v). Adds poll capability extension for 2-hop candidate discovery via channel_adjacency (legacy neighbors_ad supported). Updates RPC/proto/docs and adds unit + integration tests.
8f2fa13 to
30c4ddf
Compare
- Increment protocol version in documentation and tests - Ensure consistency across related test cases Signed-off-by: Yusuke Shimizu <stm1051212@gmail.com>
65c2ec1 to
4e85255
Compare
|
Hi @YusukeShimizu |
|
In principle, multi-hop is possible, but PeerSwap prioritizes targeted liquidity movement. |
Implements 2-hop swaps (u→m→v) where swap endpoints do not share a direct channel.
channel_adjacency(legacyneighbors_adaccepted on receive) to hint 2-hop candidates.channel_adjacencyvia listpeers (LND RPC + CLN plugin) and updates docs.Notes:
neighbors_adtochannel_adjacency(field number preserved).