-
Notifications
You must be signed in to change notification settings - Fork 31
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
contrib: Add clboss-channel-stats to summarize fee income performance #226
contrib: Add clboss-channel-stats to summarize fee income performance #226
Conversation
b2ce357
to
82446d0
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.
LGTM, do you think that this is too hard to include inside CLBOSS?
That was my first approach but it is quite a bit of code and would risk
CLBOSS stability itself. Putting it outside is very straightforward and I
think much less risky.
I think we should experiment with it outside first
…--
Ken Sedgwick
Bonsai Software, Inc.
http://www.bonsai.com/ken/
(510) 269-7334
***@***.***
Public Key: http://www.bonsai.com/ken/ken.asc
GPG Fingerprint: 4695 E5B8 F781 BF85 4326 9639 BBFC E515 8602 5550
On Fri, Aug 2, 2024, 00:18 Vincenzo Palazzo ***@***.***> wrote:
***@***.**** commented on this pull request.
LGTM, do you think that this is too hard to include inside CLBOSS?
—
Reply to this email directly, view it on GitHub
<#226 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAJNPWXAR4SHRDCGAMWFNDZPMXC3AVCNFSM6AAAAABLZLPKRKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDEMJUHA2DMMBXGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
contrib/clboss-routing-stats
Outdated
peers = {} | ||
for channel in channels_data: | ||
# Skip channels that are closed | ||
if channel.get("state") == "ONCHAIN": |
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'd skip all states except CHANNELD_NORMAL.
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.
agreed, done
This script produces a summary of channel stats, sorted by routing performance: - Displays PeerID, SCID, and Alias for each channel - Sorts first by net fees (income - expenses) (descending) - Then sorts by "Success Per Day" (SPD) (descending) - Then sorts by Age in days (ascending) The channels at the top of the list are good, the ones at the bottom are bad.
82446d0
to
4f60685
Compare
This script produces a summary of channel routing stats, sorted by performance:
The channels at the top of the list are good, the ones at the bottom are bad.