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

protocols/gossipsub: Unexpected delivery trace #2494

Closed
jsdanielh opened this issue Feb 8, 2022 · 2 comments
Closed

protocols/gossipsub: Unexpected delivery trace #2494

jsdanielh opened this issue Feb 8, 2022 · 2 comments

Comments

@jsdanielh
Copy link
Contributor

jsdanielh commented Feb 8, 2022

After upgrading to 0.42.0 (gossipsub 0.35.0) I started to see this message when rejecting a message (reporting an Ignore or Reject as message validation):

Unexpected delivery trace: Message from 12D3KooWSsDZA2nT4WGsZ5Sd1qsrVjMt5pY8p7urwGQPLdHtoKia was first seen 0s ago and has a delivery status Ignored

This also using content base addressing (using the hash of the message as MessageId).

After digging a little more, the change that is making the message to appear comes from this change where specifically here the code is now calling reject_message for different peers.
But when it goes inside the function the deliveries TimeCache is addressed by MessageId (which in my case is the hash of the message) and thus when called for the second time, the record hash returns the record as already validated and then the message is printed and no further code is executed in this function.

@AgeManning
Copy link
Contributor

Hey. Yes. This is an oversight on my behalf.

The original scoring was not designed for the optimization that I added, and I missed this warning. It is harmless though.

We have been looking more deeply into gossipsub. If you are using it there are some other more significant issues we are dealing with which should be patched in the next version.

@mxinden
Copy link
Member

mxinden commented Feb 9, 2022

Closing here with #2496 merged. Thanks for the report and the quick fix!

@mxinden mxinden closed this as completed Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants