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

tari-project / tari / 42575445992
79%

Build:
DEFAULT BRANCH: development
Ran 09 Nov 2026 09:23AM UTC
Jobs 1
Files 803
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

09 Nov 2026 06:49AM UTC coverage: 78.301% (+0.03%) from 78.272%
42575445992

push

github

web-flow
fix(comms-dht): bound Join gossip and OnConnect peer sync admission (#8266)

Description
---
Limits how much a peer can make this node store and relay through DHT
Join gossip and OnConnect peer sync. It also bounds the discovery
exclusion list.

**Join gossip** (`inbound/dht_handler/task.rs`, new `join_gate.rs`)
- A Join is still stored and merged. It is relayed only if its claim is
newer than any non-handshake claim we hold and newer than the last claim
we relayed for that origin.
- The same origin is relayed at most once per `join_cooldown_interval`.
The node remembers up to `join_cooldown_capacity` (10 000) origins and
evicts the oldest first.
- A new peer introduced by a Join is charged to the direct source's Join
budget: 50 new peers per `source_budget_window` (1 h). When that is used
up, the Join is not stored or relayed, and the source is not banned.
- Stale and in-cooldown Joins are dropped quietly, without a ban.
- New metric:
`dht_join_received_total{outcome="propagated"|"stale"|"cooldown"|"capped"|"invalid"}`.

**OnConnect peer sync** (`network_discovery/on_connect.rs`, new
`admission.rs`)
- `connect_rpc`, `get_peers` and each stream item use the existing
`bootstrap_rpc_*` timeouts. The whole sync is bounded by
`on_connect_sync_timeout` (30 s).
- New peers are charged to the serving peer's OnConnect budget, which is
separate from the Join budget. The sync stops when that budget is used
up.
- A peer that serves more than 5 claims with an invalid signature is
banned (High). This takes the place of the old ban arm, which could
never fire.
- A sync that times out or stops because the budget is used up gets the
5-minute failed-sync backoff instead of the 1-hour resync TTL.

**Dedup interaction** (`dedup/`)
- A Join that is dropped because its source has no budget gives back its
dedup hit. A later copy from another relay is then still processed.
- For Joins, a repeat from the same source is dropped before the dedup
DB, so the hit count equals the... (continued)

1210 of 1246 new or added lines in 15 files covered. (97.11%)

343 existing lines in 20 files now uncovered.

147729 of 188667 relevant lines covered (78.3%)

1086339.08 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
87.28
3.5% comms/dht/src/inbound/dht_handler/task.rs
10
80.68
50.61% comms/dht/src/network_discovery/on_connect.rs
5
89.67
0.43% comms/dht/src/config.rs
5
96.93
-0.62% comms/dht/src/dedup/mod.rs
2
99.14
0.01% comms/dht/src/network_discovery/test.rs
1
98.78
comms/dht/src/inbound/dht_handler/join_gate.rs
1
49.61
0.0% comms/dht/src/network_discovery/ready.rs

Coverage Regressions

Lines Coverage ∆ File
231
64.49
-2.59% base_layer/core/src/chain_storage/blockchain_database.rs
31
77.61
-0.9% comms/core/src/connectivity/manager.rs
20
67.33
-0.34% base_layer/core/src/chain_storage/lmdb_db/lmdb_db.rs
9
88.01
-1.08% base_layer/core/src/test_helpers/blockchain.rs
8
94.75
-0.21% base_layer/core/src/base_node/sync/horizon_state_sync/synchronizer.rs
6
92.31
-0.39% comms/core/src/multiplexing/yamux.rs
5
82.98
-0.25% base_layer/core/src/base_node/comms_interface/inbound_handlers.rs
5
73.01
-0.07% base_layer/wallet/src/output_manager_service/storage/sqlite_db/mod.rs
5
77.49
0.09% base_layer/wallet/src/transaction_service/storage/sqlite_db.rs
4
86.62
0.14% comms/core/src/protocol/rpc/client/mod.rs
3
98.98
-0.76% base_layer/core/src/consensus/base_node_consensus_manager.rs
3
67.57
-8.11% comms/core/src/peer_manager/error.rs
3
85.8
-0.62% comms/core/src/protocol/messaging/inbound.rs
2
88.71
-0.31% comms/core/src/connection_manager/peer_connection.rs
2
78.13
-3.13% comms/core/src/pipeline/outbound.rs
2
85.91
-0.39% comms/core/src/protocol/messaging/protocol.rs
1
98.88
-1.12% base_layer/common_types/src/dammsum.rs
1
90.92
-0.16% base_layer/p2p/src/services/liveness/service.rs
1
78.57
-1.43% comms/core/src/test_utils/mocks/connection_manager.rs
1
87.28
3.5% comms/dht/src/inbound/dht_handler/task.rs
Jobs
ID Job ID Ran Files Coverage
1 42575445992.1 09 Nov 2026 09:23AM UTC 803
78.3
GitHub Action Run
Source Files on build 42575445992
  • Tree
  • List 803
  • Changed 47
  • Source Changed 14
  • Coverage Changed 47
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42575445992
  • 0a31d494 on github
  • Prev Build on development (#42227896382)
  • Next Build on development (#42604330087)
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