L2-Technology / sensei

A lightning node implementation for everyone
https://l2.technology/sensei
Other
199 stars 39 forks source link

add support for remote p2p alias lookup #100

Open johncantrell97 opened 2 years ago

johncantrell97 commented 2 years ago

With the introduction of remote p2p (graph, scorer, router) there's an issue getting alias' during list_channels. It currently looks at the local network_graph but when using a remote graph there won't be anything in this local network graph.

It's pretty painful to perform these network request lookups every time you want to fetch channel list so I'm not sure if that's the best fix for this issue at the moment.

That's obviously the simplest fix for now.

The other option is once we start persisting channels in the database we can persist it with the alias and maybe do a refresh every once and a while.