Repository navigation
kad: Fix local provider eviction and removal panics - #666
Conversation
d7ec8cc to
ba5deac
Compare
gab8i
left a comment
There was a problem hiding this comment.
With this change max_provider_keys bounds remote keys and local registrations independently, so a node can hold up to 2 × max_provider_keys in total. This should be documented in the docs of MemoryStoreConfig::max_provider_keys, with_max_provider_keys, and in the changelog. Alternatively, would a dedicated limit for local keys be clearer than reusing the same value?
Thanks for the review! Went with documenting the current behaviour |
71c66d8 to
52bbc44
Compare
## [0.16.0] - 2026-09-30 - kad: Fix local provider eviction and removal panics ([#666](#666)) - Report `SubstreamOpenFailure` when switching to secondary connection ([#664](#664)) - Ensure we report connection closed to the upper layers ([#663](#663)) - kad: Implement client-server mode for Kademlia ([#611](#611)) --- > **Reviewer action required:** the changelog entries above are auto-generated from merged PRs and are **unsorted**. Please edit `CHANGELOG.md` on this branch to: > - Group the entries under `### Added` / `### Changed` / `### Fixed`. > - Add a short summary paragraph at the top of the `## [0.16.0]` section. > > Then **commit the adjusted `CHANGELOG.md` to this PR**. **After merging:** run the **Release Publish** workflow from the Actions tab with version `0.16.0` to tag `master` and publish to crates.io. See `RELEASING.md`. --- > _CI note: GitHub does not run `pull_request` workflows on PRs opened by `GITHUB_TOKEN`. If CI hasn't started on this PR, push an empty commit to trigger it:_ > ```bash > git fetch origin && git checkout release-v0.16.0 > git commit --allow-empty -m "trigger ci" && git push > ``` --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: DenzelPenzel <denis.samsonov@parity.io> Co-authored-by: Sebastian Kunert <mail@skunert.dev>
## Summary Bumps `litep2p` from 0.15.3 to 0.16.0 ([release notes](https://github.com/paritytech/litep2p/releases/tag/v0.16.0)). 0.16.0 adds the client-server mode for Kademlia (paritytech/litep2p#611) and fixes the panics around local provider records in the Kademlia memory store (paritytech/litep2p#666)
Fixes #665.
QueryFailedwithout publishing rejected registrations.