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

make clients with strict-connect option explicitly connect to provided snode. #2174

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

majestrate
Copy link
Contributor

make lokinet client with strict-connect option provided explicitly connect out to snodes provided. before it was just randomly chugging through peer selection until it found one we explicitly pinned. this rarely works.

  • create new component for selecting edge snodes as client (llarp::consensus::EdgeSelector)
  • require llarp::AbstractRouter own a llarp::consensus::EdgeSelector
  • make outbound_session_maker.cpp use llarp::consensus::EdgeSelector owned by llarp::AbstractRouter

fixes #2169

@majestrate majestrate requested a review from tewinget May 11, 2023 13:37
@majestrate majestrate force-pushed the strict-connect-issue-2169-fix-2023-05-10 branch from 3b9c8d0 to 7960597 Compare May 11, 2023 14:12
…nnect out to snodes provided.

* create new component for selecting edge snodes as client (llarp::consensus::EdgeSelector)
* require llarp::AbstractRouter own a llarp::consensus::EdgeSelector
* make outbound_session_maker.cpp use llarp::consensus::EdgeSelector owned by llarp::AbstractRouter
@majestrate majestrate force-pushed the strict-connect-issue-2169-fix-2023-05-10 branch from 7960597 to dea8ad2 Compare May 11, 2023 14:39
@majestrate
Copy link
Contributor Author

this and #2164 should address the wire protocol regression introduced in 0.9.11, getting this merged would be a great thing to add to a point release before flipping the network into full on quic tls/1.3

@majestrate
Copy link
Contributor Author

majestrate commented Jul 5, 2023

@tewinget it may help in refactoring the existing path builder code to decompose the existing path selection code to have similar kinds of hop selectors as this PR does e.g. aligned_hop_selector which given an ordered set of previous hops, path length and the final aligned hop can select the next best hop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

strict connect does not connect out
1 participant