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

Fixed relaying to exits #1292

Merged
merged 2 commits into from
Apr 10, 2024
Merged

Conversation

egbertbouman
Copy link
Member

@egbertbouman egbertbouman commented Apr 3, 2024

Currently, peers in the TunnelCommunity will suggest extending to peers that just have PEER_FLAG_RELAY set, and not PEER_FLAG_EXIT_BT. This is meant to remove some of the strain on the exit nodes.

However, the circuit creator will currently only try to extend to the suggested peers. This means that circuit creation can needlessly fail. For instance, it's currently not possible to create a 2-hop circuit in a network that consists only of exit nodes, even if the exit nodes all have PEER_FLAG_RELAY set.

This PR addresses this issue by letting the circuit creator extend to non-suggested exit nodes as well.

@egbertbouman
Copy link
Member Author

The linting errors are because a bug in ruff 0.3.5.

@qstokkink
Copy link
Collaborator

Please don't pin the ruff version 🙏 I'd rather merge with ruff violation(s): they update releases every few weeks anyway.

@qstokkink
Copy link
Collaborator

validate

@egbertbouman egbertbouman marked this pull request as ready for review April 10, 2024 13:09
@egbertbouman
Copy link
Member Author

validate

@egbertbouman egbertbouman merged commit c17400e into Tribler:master Apr 10, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants