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

tari-project / tari / 16785949760
62%

Build:
DEFAULT BRANCH: development
Ran 06 Aug 2025 08:18PM UTC
Jobs 1
Files 818
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

06 Aug 2025 06:57PM UTC coverage: 54.238% (+0.05%) from 54.188%
16785949760

push

github

web-flow
feat: add seed peer exclusion to network discovery (#7395)

Description
---
Added seed peer exclusion to network discovery's `Discovering` mode
(`impl DiscoveryReady`) when seed strap has been concluded.

Motivation and Context
---
It is counterproductive to dial seed peers to discover other peers after
seed strap has been concluded, as this requires asking for the same
information again.

How Has This Been Tested?
---
- System-level testing confirming that seed peers are not redialed as
part of `Discovering` mode.

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

<!-- 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
---

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

<!-- Does this include a breaking change? If so, include this line as a
footer -->
<!-- BREAKING CHANGE: Description what the user should do, e.g. delete a
database, resync the chain -->


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

## Summary by CodeRabbit

* **New Features**
* Added support for filtering peers by flags when selecting closest or
random peers, allowing more granular peer selection.

* **Bug Fixes**
* Updated peer selection methods throughout the application to accept
and handle the new optional peer flag parameter, ensuring consistent
behavior.

* **Tests**
* Introduced new tests to verify correct peer selection when filtering
by specific flags.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

171 of 173 new or added lines in 8 files covered. (98.84%)

9 existing lines in 3 files now uncovered.

75694 of 139558 relevant lines covered (54.24%)

195447.15 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
85.64
0.01% comms/dht/src/actor.rs
1
39.77
1.18% comms/dht/src/network_discovery/ready.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
81.2
-0.3% comms/core/src/protocol/rpc/client/mod.rs
3
54.46
0.0% comms/core/src/connectivity/manager.rs
4
59.95
-0.48% comms/dht/src/connectivity/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 16785949760.1 06 Aug 2025 08:18PM UTC 818
54.24
GitHub Action Run
Source Files on build 16785949760
  • Tree
  • List 818
  • Changed 12
  • Source Changed 8
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16785949760
  • 2a2563ac on github
  • Prev Build on development (#16746310130)
  • Next Build on development (#16884686988)
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