tari-project / tari-dan

BSD 3-Clause "New" or "Revised" License
7 stars 19 forks source link

feat!: use gossipsub for consensus broadcasts #1156

Closed mrnaveira closed 1 month ago

mrnaveira commented 2 months ago

Description

Motivation and Context

Hotstuff and cerberus are message based protocols. Currently we implement a message protocol that requires nodes to connect to every other node in the local shard. For cross shard messaging, we implement a strategy that limits the number of messages sent but relies on multiple connections per peer across shards.

We want to leverage libp2p's gossipsub for all consensus broadcasts to local/foreign shards.

How Has This Been Tested?

Manually by starting a local network using tari_spawn, performing transactions and inspecting the logs.

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

See previous section

Breaking Changes

github-actions[bot] commented 2 months ago

Test Results (CI)

570 tests  ±0   569 :white_check_mark: ±0   3h 14m 37s :stopwatch: - 21m 42s  64 suites ±0     0 :zzz: ±0    2 files   ±0     1 :x: ±0 

For more details on these failures, see this check.

Results for commit ba313103. ± Comparison against base commit 3ecc6713.

:recycle: This comment has been updated with latest results.