Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Improve collator side of the collator-protocol (#1955)
Browse files Browse the repository at this point in the history
* Improve collator side of the collator-protocol

This pr improves the collator-protocol implementation of the collator
side. Besides cleaning up code and rewriting it, the following changed:

- Before on `PeerViewChange` we send an advertisment to every peer, now
this only happens for validators.
- It also adds a check that we send an advertisment message only once
for a connected peer.
- If the same validator was part of the current and next group, we
requested to be connected to this validator two times. This is also
fixed now.
- Instead of having only one connection request, we now are being able
to store multiple of them. This is required as we can have multiple
active leafs at any point of time.

* Switch to common `ConnectionRequests`

* Update node/network/collator-protocol/src/collator_side.rs
  • Loading branch information
bkchr authored Nov 22, 2020
1 parent 4a94b71 commit ba74791
Show file tree
Hide file tree
Showing 2 changed files with 640 additions and 614 deletions.
Loading

0 comments on commit ba74791

Please sign in to comment.