-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #1224 The following changes were done: 1. Once a message is broadcasted, if it exceeds the threeshold to consider it a large message it will send an IDONTWANT message before publishing the message https://github.com/vacp2p/nim-libp2p/blob/4f9c21f6999a58dff0fde2d4f031086bc846c9f7/libp2p/protocols/pubsub/gossipsub.nim#L800-L801 2. Extracts the logic to broadcast an IDONTWANT message and to verify the size of a message into separate functions 3. Adds a template to filter values of a hashset without modifying the original
- Loading branch information
1 parent
d215bb2
commit 483e1d9
Showing
5 changed files
with
92 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters