-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Upgrade litep2p to v0.12.0 and handle Kademlia publish success events #9685
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
a5bd12e
Upgrade litep2p to support `PUT_VALUE`/`ADD_PROVIDER` success events
dmitry-markin 4cff323
Track `ADD_PROVIDER` queries
dmitry-markin 5735c5a
minor: missing field
dmitry-markin ec70584
cargo update litep2p
dmitry-markin a6b06f3
Merge remote-tracking branch 'origin/master' into dm-upgrade-litep2p
dmitry-markin c58e730
Handle provider republish events
dmitry-markin 22c8ada
Merge remote-tracking branch 'origin/master' into dm-upgrade-litep2p
dmitry-markin 9d5e3ee
minor: Log invalid queries for ADD_PROVIDER
dmitry-markin 63944bb
Merge remote-tracking branch 'origin/master' into dm-upgrade-litep2p
dmitry-markin 8a62df4
minor: remove conflict markers
dmitry-markin 0175357
minor: make taplo happy
dmitry-markin f45636b
Fix getting pending ADD_PROVIDER query
dmitry-markin 81906e3
Point litep2p to crates.io release 0.12.0
dmitry-markin 8601866
Update Cargo.lock for litep2p 0.12.0
dmitry-markin 61f7408
Update from github-actions[bot] running command 'prdoc --bump major -…
github-actions[bot] 3eeb933
Merge branch 'master' into dm-upgrade-litep2p
dmitry-markin c879ef3
minor: add sc-network-types to prdoc
dmitry-markin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| title: Upgrade litep2p to v0.12.0 | ||
| doc: | ||
| - audience: Node Dev | ||
| description: litep2p v0.12.0 adds ability to track whether publishing a DHT record | ||
| or provider was successful. This PR brings this functionality to substrate. Particularly, | ||
| this fixes authority-discovery unnecessarily republishing DHT records due to litep2p | ||
| not emitting `KademliaEvent::PutRecordSuccess` before v0.12.0. | ||
| crates: | ||
| - name: sc-network | ||
| bump: major | ||
| - name: sc-network-types | ||
| bump: major |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We add here the return value.
Are there other places in the codebase which could be impacted with this?
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.
Nope, the only place this is called is in
litep2p/mod.rswhere we store the return value.@lrubasze Thanks for the review!