Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Include timestamp in channel_htlcs or forwarded_payments table #2491

Closed
billygarrison opened this issue Mar 23, 2019 · 1 comment · Fixed by #2528
Closed

Comments

@billygarrison
Copy link
Contributor

As far as I can tell, there's no way to know when your node forwarded a payment, aside from parsing the log data.

It would be very helpful for routing node operators to be able to know exactly when they have forwarded payments, so they could have a better understanding of how changing various aspects of their setup affects their routing traffic.

Currently, forwarded_payments contains the in and out HTLC IDs only. By joining them to channel_htlcs, we are able to get cltv_expiry, which doesn't tell us much about when we actually forwarded the payment. The only other sense of time is HTLC ID, which is still far from ideal.

It would be nice if we had an absolute timestamp, for example in forwarded_payments when we receive the forward request, or in channel_htlcs when we know the payment has either failed/succeeded.

As an example, it would be great to be able to create a simple time series plot showing cumulative fees through time. This would allow us to see the effects of changing fees, opening/closing channels, etc.

@m-schmoock
Copy link
Collaborator

Yes, I was also missing that recently and have been thinking about adding it, now we are two :D

@cdecker what do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants