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

Boss/Mod/Tally.cpp: Implement clboss-tally. #142

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Boss/Mod/Tally.cpp: Implement clboss-tally. #142

wants to merge 2 commits into from

Conversation

ZmnSCPxj
Copy link
Owner

No description provided.

@ksedgwic
Copy link
Collaborator

@chrisguida This looks really useful. Some thoughts:

  • do we think it is complete? @ZmnSCPxj ?
  • how does it relate to bookkeeper? Does it have more visibility (or less)?
  • I don't like the cleartally operation, would much rather have a way to generate an income/expense report between two specified timestamps (could default to what most people would want). I think this is trivial to do?

@chrisguida
Copy link
Contributor

@ksedgwic yeah, I agree that requesting a report between two timestamps would be amazing to have!

Have you looked at the bkpr commands in CLN yet? Thinking there must be a good way to integrate this CLBOSS data into there. Possibly there are some bkpr account event types that we can just use, if not we can make new types like we did with Smaug.

@chrisguida
Copy link
Contributor

I haven't tested this code yet, hopefully I'll get a chance soon!

@chrisguida
Copy link
Contributor

Testing this with my mutinynet node running the new signet PR #207

So far it's opened a couple of channels, nothing in the tally yet:

$ lightning-cli clboss-tally
{
   "total": 0,
   "comment": "Reset all tallies to 0 via `clboss-cleartally`.  This data is purely for node operator and CLBOSS will never use this in its heuristics.",
   "history": [
      {
         "time": 1.7165e+09,
         "time_human": "UTC 2024-05-23 20:24:57.352",
         "total": 0
      }
   ]
}

@chrisguida
Copy link
Contributor

I've rebased this, do you want a new PR @ksedgwic ?

@tsjk
Copy link

tsjk commented Aug 2, 2024

This would be cool to have.

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 this pull request may close these issues.

4 participants