-
Notifications
You must be signed in to change notification settings - Fork 445
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: circuit v2 #1166
feat: circuit v2 #1166
Conversation
Not sure whether this is a js-libp2p specific question, or a general question. In case it is of some help, below is the reservation renewal state machine in rust-libp2p: |
Tnx that is certainly useful. But yeah, seems like it's too part question, as I'm also curious where to put that code inside js-libp2p 😅 |
@achingbrain Could you help me with I could easily fix it if I could get access to that libp2p variable as I could stub reservation before test starts. |
15f46e0
to
f25943f
Compare
@achingbrain @wemeetagain finally got this in a working state. There is probably a lot of weird stuff as this PR has gone trough numerous merges with a lot of conflicts |
@mpetrunic @achingbrain : what are the next steps for getting this over the line? Is it just about code review? |
This is still missing the ability to purge expired reservations but not sure how to architect this as I would need to figure out where to put the reservation store so that it became Startable. |
closing in favor of #1475 |
closes #1029
Implemented:
Open questions:
At this point,- fixedtest/relay/relay.node.js
should pass but it doesn't. From my debugging, it breaks at upgrading connection but cannot figure out why (it hangs and then aborts) so I would appreciate somebody with more knowledge of how it works to take a look at it.