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

fix: Closed channels affecting the stats #1998

Merged
merged 4 commits into from
Oct 9, 2023
Merged

fix: Closed channels affecting the stats #1998

merged 4 commits into from
Oct 9, 2023

Conversation

iWarpBTC
Copy link
Contributor

@iWarpBTC iWarpBTC commented Oct 5, 2023

So I've updated to 0.11.0, rushed the new node stats and it just doesn't seem right to me. Closed channels are being included. Here I'm offering my humble hot fix.

Maybe also inactive channels should be included in some/all of those stats? Let me know what you think.

@codecov
Copy link

codecov bot commented Oct 5, 2023

Codecov Report

Merging #1998 (14e8346) into main (528882e) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1998      +/-   ##
==========================================
+ Coverage   61.58%   61.64%   +0.05%     
==========================================
  Files          55       55              
  Lines        8057     8058       +1     
==========================================
+ Hits         4962     4967       +5     
+ Misses       3095     3091       -4     
Files Coverage Δ
lnbits/nodes/base.py 89.33% <100.00%> (+0.74%) ⬆️

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jackstar12
Copy link
Collaborator

Maybe also inactive channels should be included in some/all of those stats? Let me know what you think.

I think only including active ones is fine

Copy link
Contributor Author

@iWarpBTC iWarpBTC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@prusnak prusnak added this to the Release Version 0.11.1 milestone Oct 5, 2023
@dni dni requested a review from motorina0 October 6, 2023 09:26
@prusnak prusnak merged commit 03b789d into lnbits:main Oct 9, 2023
23 checks passed
@prusnak
Copy link
Collaborator

prusnak commented Oct 9, 2023

4 acks - merging

thanks @iWarpBTC !

@iWarpBTC iWarpBTC deleted the fix-node_stats branch October 9, 2023 11:12
dni pushed a commit that referenced this pull request Oct 17, 2023
Co-authored-by: jackstar12 <jkranawetter05@gmail.com>
prusnak pushed a commit that referenced this pull request Oct 17, 2023
Co-authored-by: jackstar12 <jkranawetter05@gmail.com>
dni pushed a commit that referenced this pull request Oct 17, 2023
Co-authored-by: jackstar12 <jkranawetter05@gmail.com>
dni added a commit that referenced this pull request Oct 17, 2023
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.

None yet

5 participants