-
Notifications
You must be signed in to change notification settings - Fork 186
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
GossipSub v1.2: IDONTWANT control message and priority queue. #553
Commits on Aug 9, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for 6877d7b - Browse repository at this point
Copy the full SHA 6877d7bView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 7ddc486 - Browse repository at this point
Copy the full SHA 7ddc486View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc45ebb - Browse repository at this point
Copy the full SHA dc45ebbView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for f06b3b2 - Browse repository at this point
Copy the full SHA f06b3b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22d9773 - Browse repository at this point
Copy the full SHA 22d9773View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62daad4 - Browse repository at this point
Copy the full SHA 62daad4View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 53b1393 - Browse repository at this point
Copy the full SHA 53b1393View commit details -
Clear expired message IDs from the IDONTWANT cache
If the messages IDs received from IDONTWANTs are older than 3 heartbeats, they should be removed from the IDONTWANT cache.
Configuration menu - View commit details
-
Copy full SHA for 4e930a7 - Browse repository at this point
Copy the full SHA 4e930a7View commit details -
Keep the hashes of IDONTWANT message ids instead
Rather than keeping the raw message ids, keep their hashes instead to save memory and protect again memory DoS attacks.
Configuration menu - View commit details
-
Copy full SHA for 1afead5 - Browse repository at this point
Copy the full SHA 1afead5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fabcdd - Browse repository at this point
Copy the full SHA 6fabcddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4db112f - Browse repository at this point
Copy the full SHA 4db112fView commit details
Commits on Aug 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 24be1a7 - Browse repository at this point
Copy the full SHA 24be1a7View commit details
Commits on Aug 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0aaac6a - Browse repository at this point
Copy the full SHA 0aaac6aView commit details
Commits on Aug 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 55abc3b - Browse repository at this point
Copy the full SHA 55abc3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d1aa4d9 - Browse repository at this point
Copy the full SHA d1aa4d9View commit details -
Check ctx error in rpc sending worker
Co-authored-by: Steven Allen <steven@stebalien.com>
Configuration menu - View commit details
-
Copy full SHA for 1914320 - Browse repository at this point
Copy the full SHA 1914320View commit details
Commits on Aug 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 810f65f - Browse repository at this point
Copy the full SHA 810f65fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c507ef - Browse repository at this point
Copy the full SHA 0c507efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 97fa9b0 - Browse repository at this point
Copy the full SHA 97fa9b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ae4239 - Browse repository at this point
Copy the full SHA 3ae4239View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e49e05 - Browse repository at this point
Copy the full SHA 8e49e05View commit details
Commits on Aug 15, 2024
-
Revert "Increase GossipSubMaxIHaveMessages to 1000"
This reverts commit 6fabcdd.
Configuration menu - View commit details
-
Copy full SHA for 6de02f3 - Browse repository at this point
Copy the full SHA 6de02f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e5704b6 - Browse repository at this point
Copy the full SHA e5704b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for f4b05f4 - Browse repository at this point
Copy the full SHA f4b05f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for e5c971c - Browse repository at this point
Copy the full SHA e5c971cView commit details -
Configuration menu - View commit details
-
Copy full SHA for f141e13 - Browse repository at this point
Copy the full SHA f141e13View commit details
Commits on Aug 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0d9f553 - Browse repository at this point
Copy the full SHA 0d9f553View commit details -
Configuration menu - View commit details
-
Copy full SHA for baba9e1 - Browse repository at this point
Copy the full SHA baba9e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bdeb9b - Browse repository at this point
Copy the full SHA 9bdeb9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6491d8e - Browse repository at this point
Copy the full SHA 6491d8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 79dcdc8 - Browse repository at this point
Copy the full SHA 79dcdc8View commit details