lntop icon indicating copy to clipboard operation
lntop copied to clipboard

feature-request: Menu tab for forwarding history

Open hieblmi opened this issue 2 years ago • 5 comments

It might be nice to view the output of lncli fwdinghistory in a separate tab in addition to the live Routing tab. This would allow to display historic forwarding information. The start/end times could be set via config flag.

This feature complements the real-time routing event tab with historical settled routing events without storing additional data.

hieblmi avatar Oct 07 '22 16:10 hieblmi

Might be a little simplified once this is merged to lnd: https://github.com/lightningnetwork/lnd/pull/7001

hieblmi avatar Oct 09 '22 12:10 hieblmi

I am working on this and should have a PR ready soon.

hieblmi avatar Oct 23 '22 23:10 hieblmi

nice feature, was an option to save these kind off information into a database to go back in time and also analyze the information lntop captures with other tools already discussed ?

ziggie1984 avatar Oct 25 '22 14:10 ziggie1984

The discussion was started here https://github.com/edouardparis/lntop/issues/68 but hasn't gained traction so far.

In this PR I want to introduce a simple view of the forwarding history without the need for additional storage. If needed this can be replaced later on by custom data extracted from the routing events.

hieblmi avatar Oct 25 '22 14:10 hieblmi

I am working on this and should have a PR ready soon.

I got the basic functionality working locally but I would like to wait until https://github.com/lightningnetwork/lnd/pull/7083 makes it into the next release. This will simplify the code in this PR.

hieblmi avatar Nov 06 '22 15:11 hieblmi