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

insights: Track Forwards using HtlcEventStream #43

Open
carlaKC opened this issue May 28, 2020 · 0 comments
Open

insights: Track Forwards using HtlcEventStream #43

carlaKC opened this issue May 28, 2020 · 0 comments

Comments

@carlaKC
Copy link
Contributor

carlaKC commented May 28, 2020

The newly added HtlcEventStream added to lnd's routerrpc provides new insight into a node's forwarding activity. This data is useful for a variety of applications - rate limiting for forwards, success rate tracking of various channels, rebalancing hints which trigger when we see a drop in incoming traffic or a rise in ErrInsufficientBandwidth failures.

This issue proposes the addition of a rounting package that consumes forwarding events, and matches them to their settle/fails where applicable. Such a solution could also write htlcs to disk, but for now we will start in memory and let requirements take form. A rough version of this change has been started here.

Steps to Completion

  1. Update lndclient to consume forwarding events (in loop repo)
  2. Consume htlc events, classifying them into forwards, receives and link failures (where forwards contain a forwarding event and subsequent settle/fail events.
  3. Add the ability to make requests to this subsystem for a set of events over a period of time, which are handled by the main event loop consuming htlc events from lnd so we don't need any locking.
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

No branches or pull requests

1 participant