Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go IDONTWANT #553

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Go IDONTWANT #553

wants to merge 9 commits into from

Commits on Jan 15, 2024

  1. Replace sending channel with the smart rpcQueue

    Since we want to implement a priority queue later, we need to replace
    the normal sending channels with the new smart structures first.
    ppopth committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    3b4d97b View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2024

  1. Implement UrgentPush in the smart rpcQueue

    UrgentPush allows you to push an rpc packet to the front of the queue so
    that it will be popped out fast.
    ppopth committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    773c26f View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2024

  1. Configuration menu
    Copy the full SHA
    1f36b9d View commit details
    Browse the repository at this point in the history
  2. Send IDONTWANT right before validation step

    Most importantly, this commit adds a new method called PreValidation to
    the interface PubSubRouter, which will be called right before validating
    the gossipsub message.
    
    In GossipSubRouter, PreValidation will send the IDONTWANT controll
    messages to all the mesh peers of the topics of the received messages.
    ppopth committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    3e3d6d7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dfd81e8 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2024

  1. Configuration menu
    Copy the full SHA
    055ffa0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6b24d35 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. Revert "Add urgent flag to SendRPC in trace.proto"

    This reverts commit dfd81e8.
    ppopth committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    ec6ded9 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2024

  1. Handle IDONTWANT control messages

    When receiving IDONTWANTs, the host should remember the message ids
    contained in IDONTWANTs using a hash map.
    
    When receiving messages with those ids, it shouldn't forward them to the
    peers who already sent the IDONTWANTs.
    
    When the maximum number of IDONTWANTs is reached for any particular
    peer, the host should ignore any excessive IDONTWANTs from that peer.
    ppopth committed May 1, 2024
    Configuration menu
    Copy the full SHA
    63f5ca7 View commit details
    Browse the repository at this point in the history