spark-wallet icon indicating copy to clipboard operation
spark-wallet copied to clipboard

Add connected channel aliases in channel list

Open JaviLib opened this issue 6 years ago • 8 comments
trafficstars

In the list of channels in the web version at least, we can't effectively see who are the names of the nodes we are connected to. We need at least the alias shown to the right of the amount (without requiring to open down the detailed information).

JaviLib avatar Jan 07 '19 09:01 JaviLib

This is a bit tricky because aliases are not reported in the channels list returned from listpeers, you have to query for each peer's alias separately using listnodes <pubkey>. Meaning, a list of 100 channels would require a total of 101 RPC calls.

@cdecker How do you feel about making this information available in listpeers?

shesek avatar Jan 20 '19 02:01 shesek

I know it is a bit tricky, I asked for support here but it seems they are not going to add it. One solution to this is to use some kind of cache.

JaviLib avatar Jan 20 '19 20:01 JaviLib

Could a possible solution be for the spark wallet user to name the channel themselves? Something I can input myself so I can identify who the channel is with?

k3tan172 avatar Mar 02 '19 13:03 k3tan172

@k3tan25 This is a pretty cool idea that sidesteps the issue with aliases, I'll look into implementing this. Added #68 to keep track of that.

shesek avatar Mar 02 '19 16:03 shesek

I've just installed the 'summary' plugin from https://github.com/lightningd/plugins, the output of which shows the channel aliases. Could this be somehow integrated in to spark-wallet?

k3tan172 avatar May 05 '19 12:05 k3tan172

10 months after, do we have any progress on this?

JaviLib avatar Oct 25 '19 09:10 JaviLib

Also will like to add to this enhancement: date/time when the channel was created, below the channel name.

Darth-Coin avatar Jan 10 '20 11:01 Darth-Coin

@Darth-Coin If you open the channel details, you can see the age of the channel in terms of number of blocks, as well as an estimate of a human-readable duration (based on the number of blocks). The timestamp itself is not made available via c-lightning, so this is the best I could do.

shesek avatar Jan 18 '20 14:01 shesek