-
Notifications
You must be signed in to change notification settings - Fork 957
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 mesh contains same peer id multiple times #1674
Comments
Note that this might be caused by non-spec compliant behaviour of the remote node (it is a 0.4.22 go-ipfs node). I have no idea. But the internal state should not get inconsistent even when faced with non-spec-compliant msgs. |
I think it does not grow indefinitely, but only up to mesh_n_high. So you end up with a mesh that contains mesh_n_high duplicates of the same node... |
I am pretty sure this will be fixed by the switch to sets in #1583 |
Resolved in #1583 |
The mesh for a topic is a Vec.
After running a node for a while while looking into #1671, the mesh for a topic contains lots of duplicates.
This definitely does not seem right, since the size of the vec is being used for checking if the mesh needs more peers.
Surely a mesh that contains > mesh_n_low times the same node is not a very good mesh.
I think the mesh peers should be a set to avoid all those issues. If it needs to be a vec for perf reasons, at least it should be ensured that the vec does not contain duplicates.
The text was updated successfully, but these errors were encountered: