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

client/finality-grandpa: Reintegrate gossip validator report stream #4661

Merged
merged 2 commits into from
Jan 17, 2020

Commits on Jan 17, 2020

  1. client/finality-grandpa: Reintegrate gossip validator report stream

    The `finality-grandpa` `GossipValidator` is called by the `GossipEngine`
    in a synchronous fashion on each gossip message. Its main task is to
    decide whether to gossip the given message on, or whether to drop it.
    
    In addition it also updates the reputation of a node's peers based on
    the incoming gossip messages. To do so it needs to be able to report the
    reputation change which it does through an unbounded channel (in order
    to stay synchronous).
    
    Previously the receiving side of this channel would be handled by a new
    task, polling the channel and forwarding the changes to a clone of the
    `GossipEngine` that it would own.
    
    Instead the receiver of the above mentioned channel is now being polled
    by the `NetworkBridge` within its `Future::poll` implementation.
    Reputation changes are reported through the already existing
    `GossipEngine` instance within `NetworkBridge`.
    
    For details on the overall goal, see d4fbb89.
    mxinden committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    6086a37 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    33e1ba7 View commit details
    Browse the repository at this point in the history