-
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
feat(kad): report automatic changes to kad mode #4503
Conversation
Signed-off-by: Dave Huseby <[email protected]>
Signed-off-by: Dave Huseby <[email protected]>
Co-authored-by: Thomas Eizinger <[email protected]>
Co-authored-by: Thomas Eizinger <[email protected]>
Co-authored-by: Thomas Eizinger <[email protected]>
Signed-off-by: Dave Huseby <[email protected]>
Signed-off-by: Dave Huseby <[email protected]>
Co-authored-by: Thomas Eizinger <[email protected]>
Co-authored-by: Thomas Eizinger <[email protected]>
Signed-off-by: Dave Huseby <[email protected]>
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.
Thanks @dhuseby !
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.
Small suggestions, otherwise this looks good to me. Adding it to the v0.53 milestone.
This pull request has merge conflicts. Could you please resolve them @dhuseby? 🙏 |
Co-authored-by: Max Inden <[email protected]>
Co-authored-by: Max Inden <[email protected]>
Signed-off-by: Dave Huseby <[email protected]>
…add-kad-modechange
@mxinden or @thomaseizinger I just resolved the CHANGELOG.md issues and put this in the 0.44.5 version but I think this may be a breaking change; that's why we had it in a 0.45.0 release initially. |
Signed-off-by: Dave Huseby <[email protected]>
@thomaseizinger and @mxinden heads up, I bumped kad to 0.45.0 and made the corresponding change to the CHANGELOG.md. |
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.
Thanks! Looking forward to this being included in the next release :)
This pull request has merge conflicts. Could you please resolve them @dhuseby? 🙏 |
Signed-off-by: Dave Huseby <[email protected]>
…add-kad-modechange
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.
Signed-off-by: Dave Huseby <[email protected]>
Signed-off-by: Dave Huseby <[email protected]>
@thomaseizinger the only CI test that fails now is the cargo dependency security check. I think this PR has caught up. Also, what's the process for taking care of the dependencies that need to be updated? Should I post issues for the old deps the CI found? How quickly do we usually address these? |
Thanks! I am not sure where that one slipped in. I'll send a separate PR to fix it. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Approvals have been dismissed because the PR was updated after the send-it
label was applied.
Description
Previously, the kademlia protocol would only log changes to the internal mode. With this patch, we now also emit an event which allows users to code against the internal state of the kademlia protocol.
Fixes #4310.
Notes & open questions
Added code to emit a ModeChanged event whenever in automatic mode and we detect a mode change from the external addresses the swarm knows about.
Previous broken PRs: #4341 and #4499
Change checklist