• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cameri / nostream / 43734699359
78%

Build:
DEFAULT BRANCH: main
Ran 15 Nov 2026 04:22PM UTC
Jobs 2
Files 336
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Nov 2026 04:18PM UTC coverage: 77.834% (+0.2%) from 77.635%
43734699359

push

github

web-flow
feat(peering): add paid peering billing ledger (#1087)

<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->
- add `invoices.purpose`, `term_amount_msats` and `term_period_seconds`
- add the `peering_payments` ledger keyed by `(peer_pubkey, direction)`
- add the peering payment repository and invoice period updates
- create and settle peering invoices outside the admission/user flow
- skip the user balance credit in `confirm_invoice()` for peering
invoices
- validate paid peering terms

This PR only adds the data layer and settlement. No peer can request an
invoice
and no feed is gated until the next PR.

## Related Issue
<!--- This project only accepts pull requests related to open issues -->
<!--- If suggesting a new feature or change, please discuss it in an
issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps
to reproduce -->
<!--- Please link to the issue here: -->
part 1 of #937 
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->

## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->

## Screenshots (if appropriate):

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [ ] Non-functional change (docs, style, minor refactor)
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [... (continued)

5038 of 7077 branches covered (71.19%)

Branch coverage included in aggregate %.

187 of 196 new or added lines in 11 files covered. (95.41%)

10851 of 13337 relevant lines covered (81.36%)

699.19 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
91.84
src/utils/peering-billing.ts
3
95.85
-4.15% src/services/payments-service.ts
1
91.94
-0.2% src/app/maintenance-worker.ts
Jobs
ID Job ID Ran Files Coverage
1 Integration - 43734699359.1 15 Nov 2026 04:22PM UTC 336
33.49
GitHub Action Run
2 Unit - 43734699359.2 15 Nov 2026 04:23PM UTC 336
75.5
GitHub Action Run
Source Files on build 43734699359
  • Tree
  • List 336
  • Changed 12
  • Source Changed 10
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #43734699359
  • 5c49bb9f on github
  • Prev Build on main (#43684132058)
  • Next Build on main (#43767531503)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc