tari-project / tari

The Tari protocol
https://tari.com
BSD 3-Clause "New" or "Revised" License
345 stars 212 forks source link

feat: improve initial connection times #6343

Closed hansieodendaal closed 3 months ago

hansieodendaal commented 3 months ago

Description

Improved initial connection times from a dht perspective for nodes at startup when all previous connections to peers failed, as well as when a node lost all connectivity. With this PR a node will attempt to connect to peers with previously failed attempts under such circumstances, improving general connectivity. Nodes will refresh their dht neighbour list without discriminating against those peers so that all nodes can be tried again.

Motivation and Context

When a node starts up or loses all connectivity and all known peers have had a failed connection, the node will wait for a 24-hour cooldown period before the same nodes are contacted again.

How Has This Been Tested?

System-level testing.

What process can a PR reviewer use to test or verify this change?

Code review.

Breaking Changes

github-actions[bot] commented 3 months ago

Test Results (Integration tests)

33 tests   33 :white_check_mark:  13m 16s :stopwatch: 11 suites   0 :zzz:  2 files     0 :x:

Results for commit e641428c.

github-actions[bot] commented 3 months ago

Test Results (CI)

    3 files    120 suites   37m 8s :stopwatch: 1 280 tests 1 280 :white_check_mark: 0 :zzz: 0 :x: 3 832 runs  3 832 :white_check_mark: 0 :zzz: 0 :x:

Results for commit e641428c.