-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add routing view #22
Add routing view #22
Conversation
3ed1101
to
074cf08
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement 👏
Please, give in a comment a link to a lnurl-pay or web page to generate an invoice for tip
config/default.go
Outdated
"DIR", # event type: send, receive, forward | ||
"STATUS", # one of: active, settled, failed, linkfail | ||
"IN CHANNEL", # channel id of the incomming channel | ||
"IN ALIAS", # incoming channel node alias |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find it difficult to understand from colum header the limits of each column
maybe It should be better to have underscore: IN_ALIAS
in order to have space as a column delimiter only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
README.md should be modified with this new columns and a disclamer about the non persistence of the routing view
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed and added section to README.md. What about LAST UPDATE
though?
@@ -425,6 +480,10 @@ func New(c *config.Network, logger logging.Logger) (*Backend, error) { | |||
logger: logger.With(logging.String("name", c.Name)), | |||
} | |||
|
|||
if c.PoolCapacity < lndMinPoolCapacity { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah my pool has bug, technically we want the pool to create a new connection if there is not enough conn.
Your fix can be added temporally the time to fix it
} | ||
|
||
func (c *Routing) Speed() (int, int, int, int) { | ||
current := c.currentColumnIndex() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A fix is needed for the cursor. Please, reproduce this change:
https://github.com/edouardparis/lntop/pull/23/files#diff-1a61b9279a10d79e5322cbbc01644da76c7b9e7111de5f718d6fe7a0bc83ec68R140
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added fix to bc8aabe
Thanks for the tip! I currently cannot accept as I don't want this identity publicly linked to my node, but feel free to tip nix-bitcoin instead:) |
ui/views/routing.go
Outdated
"IN CHANNEL", | ||
"IN ALIAS", | ||
"OUT CHANNEL", | ||
"OUT ALIAS", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry it is missing _
Columns are not displayed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, fixed in f0dedd5.
Ignore lower values, lntop won't start with pool_capacity <= 3 due to router rpc handle.
Thank you for your contribution ! |
Adds ROUTING view which shows log of HTLC forwards, sends & receives. It is useful for viewing failed forwards which are (AFAIK) not persisted in lnd but can be obtained through streaming api. Not quite sure what the best column order & column colors are:smiley:
Needs #21.