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

tari-project / tari / 15757511687 / 1
62%
development: 62%

Build:
DEFAULT BRANCH: development
Ran 19 Jun 2025 05:23PM UTC
Files 693
Run time 29s
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

19 Jun 2025 12:10PM UTC coverage: 72.219% (-0.02%) from 72.239%
15757511687.1

push

github

web-flow
fix: peer dialling (#7218)

## Description

Implements proactive peer dialing functionality to resolve connectivity
issues where nodes consistently dial fewer peers than needed to reach
target connection counts. The system now automatically dials 2-3x the
target number of peers to account for connection failures and ensures
robust network connectivity.

**Key Components:**
- **Proactive Dialer**: Core service that calculates optimal dial counts
based on historical success rates and intelligently selects healthy peer
candidates
- **Enhanced Connection Stats**: Extended `PeerConnectionStats` with
circuit breaker pattern integration and health scoring capabilities
- **Peer Health Metrics**: Circuit breaker pattern with time-windowed
success rate tracking and health scoring for peer selection
- **Health-Aware Peer Selection**: Enhanced `ConnectivitySelection` with
health-based prioritization for peer connection choices
- **Peer Discovery Bridge**: Triggers additional peer discovery when
insufficient candidates are available
- **Comprehensive Metrics**: Prometheus metrics for monitoring dial
attempts, success rates, circuit breaker states, and performance

**Architecture:**
- Actor-based service pattern with async message passing
- Integrates into existing ConnectivityManager's connection pool refresh
cycle (currently 180 seconds/3 minutes)
- Configurable multipliers and thresholds for different network
conditions
- Backward compatible with existing connectivity management

**Production Validation:** This implementation has been tested and
verified working on a live mainnet node, with logs confirming proper
execution and logic flow.

---

## Motivation and Context

**Problem:** Nodes were consistently dialing only ~5 peers instead of
sufficient peers to reach the target of 8 connections, leading to poor
network connectivity and potential isolation issues.

**Root Cause:** The existing connectivity manager only dialed exactly
the number of missing connectio... (continued)

82790 of 114637 relevant lines covered (72.22%)

240690.26 hits per line

Source Files on job 15757511687.1
  • Tree
  • List 693
  • Changed 23
  • Source Changed 8
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 15757511687
  • 5a2b934c on github
  • Prev Job for on development (#15731181023.1)
  • Next Job for on development (#15780552521.1)
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