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

tari-project / tari / 15015532709
62%

Build:
DEFAULT BRANCH: development
Ran 14 May 2025 01:35PM UTC
Jobs 1
Files 709
Run time 2min
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

14 May 2025 08:06AM UTC coverage: 73.269% (-0.006%) from 73.275%
15015532709

push

github

web-flow
feat: add spendable supply grpc query (#7055)

Description
---
- Added a grpc query to return the spendable as well as the circulating
token supply for a list of heights. An empty list will result in the tip
block height being used.
- Improved the get blocks grpc query to accept an empty list, in which
case the tip block will be returned.

Motivation and Context
---
Exchanges need this functionality.

How Has This Been Tested?
---
- New unit test to test the integrity of the spendable supply
calculation.
- System-level tests to test the grpc query.

What process can a PR reviewer use to test or verify this change?
---
- Code review
- System-level tests

<!-- Checklist -->
<!-- 1. Is the title of your PR in the form that would make nice release
notes? The title, excluding the conventional commit
tag, will be included exactly as is in the CHANGELOG, so please think
about it carefully. -->


Breaking Changes
---

- [ ] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [X] Other - Please specify

<!-- Does this include a breaking change? If so, include this line as a
footer -->
BREAKING CHANGE: The `ValueAtHeightResponse` in `base_node.proto`
changed to allow for spendable token supply alongside circulating
supply.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added separate reporting of circulating supply and spendable supply at
specific blockchain heights in supply queries.
- Introduced calculation and reporting of spendable block rewards and
pre-mine supply at given heights.
- **Bug Fixes**
- Improved error handling in token supply and block retrieval, with
clearer error messages and fallback to the current tip block height when
no height is specified.
- **Tests**
- Added tests to verify correctness of spendable supply calculations at
various block heights.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

189 of 218 new or added lines in 2 files covered. (86.7%)

60 existing lines in 12 files now uncovered.

81943 of 111839 relevant lines covered (73.27%)

275255.57 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
29
74.26
2.78% base_layer/core/src/blocks/pre_mine/mod.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
83.01
-0.49% base_layer/core/src/transactions/transaction_key_manager/storage/sqlite_db/mod.rs
1
74.71
-0.15% base_layer/wallet/src/transaction_service/protocols/transaction_send_protocol.rs
1
81.97
-0.2% comms/core/src/connection_manager/dialer.rs
2
85.91
-0.91% base_layer/p2p/src/services/liveness/state.rs
2
57.11
0.0% comms/core/src/connectivity/manager.rs
4
83.44
-1.32% comms/core/src/connection_manager/manager.rs
4
84.92
-2.01% comms/core/src/protocol/messaging/outbound.rs
5
84.1
-1.01% comms/core/src/noise/socket.rs
6
61.95
-2.65% comms/core/src/connectivity/requester.rs
8
87.27
-1.62% base_layer/p2p/src/services/liveness/service.rs
8
65.67
-3.43% comms/core/src/protocol/messaging/protocol.rs
18
59.02
-0.6% base_layer/wallet/src/transaction_service/service.rs
Jobs
ID Job ID Ran Files Coverage
1 15015532709.1 14 May 2025 01:35PM UTC 709
73.27
GitHub Action Run
Source Files on build 15015532709
  • Tree
  • List 709
  • Changed 16
  • Source Changed 2
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15015532709
  • 8901bcbb on github
  • Prev Build on development (#14964897470)
  • Next Build on development (#15120110241)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc