-
-
Notifications
You must be signed in to change notification settings - Fork 331
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: ignore duplicate publish errors #5188
Conversation
Performance Report✔️ no performance regression detected Full benchmark results
|
@@ -4737,6 +4737,13 @@ bytes@3.1.2: | |||
resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" | |||
integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== | |||
|
|||
c-kzg@^1.0.9: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it intended that c-kzg
is added in yarn.lock? I noticed it was showing up as a diff when running yarn install
locally, this is fixed but this change seems unrelated to the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, its unrelated to this PR
🎉 This PR is included in v1.6.0 🎉 |
Motivation
Got
PublishError.Duplicate
errors at validator side even through it's a success. There are 2 reasons for it:vc
works with more than 1 beacon nodes, an item may reach one node first and spread across the network through gossipsub, when the other node callsgossipsub.publish()
it throwsPublishError.Duplicate
error because it sees that item already through gossipsub (see v1.4.0: submitPoolAttestations errors #5098)Description
ignoreDuplicatePublishError
option was added to gossipsub through https://github.com/ChainSafe/js-libp2p-gossipsub/pull/404/files and included in gossipsubv6.2.0
publish*()
APIs that come fromvc
Closes #5140 #5098