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

Disable PeerSharing completely for NTNV_11-12 #4728

Merged
merged 2 commits into from
Nov 29, 2023
Merged

Conversation

bolt12
Copy link
Contributor

@bolt12 bolt12 commented Nov 24, 2023

Description

Disable PeerSharing completely for NTNV_11-12. I overlooked the fact that the handshake response is also encoded so locally the node will agree on something and send something different over the wire. The fix is to completely disable PeerSharing for older versions.

This also fixes a bug in the pool of peers available to share.

@bolt12 bolt12 added bug Something isn't working networking peer-sharing Issues / PRs related to peer sharing labels Nov 24, 2023
@bolt12 bolt12 requested a review from coot as a code owner November 24, 2023 17:30
@bolt12 bolt12 force-pushed the bolt12/peerSharing-fix branch from 1b7375f to 5690925 Compare November 24, 2023 17:31
@bolt12 bolt12 force-pushed the bolt12/peerSharing-fix branch from 1c087d5 to c2d701e Compare November 27, 2023 14:10
@bolt12 bolt12 requested a review from coot November 27, 2023 14:10
@bolt12 bolt12 force-pushed the bolt12/peerSharing-fix branch from fa6c547 to 896b1a8 Compare November 29, 2023 15:28
Fixes confusion with pool of peer to share
@bolt12 bolt12 force-pushed the bolt12/peerSharing-fix branch from 896b1a8 to 25b6e04 Compare November 29, 2023 15:35
@bolt12 bolt12 requested review from disassembler and njd42 November 29, 2023 17:06
@bolt12 bolt12 enabled auto-merge November 29, 2023 17:07
@bolt12 bolt12 added this pull request to the merge queue Nov 29, 2023
Merged via the queue into master with commit c8023bc Nov 29, 2023
@bolt12 bolt12 deleted the bolt12/peerSharing-fix branch November 29, 2023 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working peer-sharing Issues / PRs related to peer sharing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants