-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
transport: add in memory transport #2293
Comments
Here is something similar that tailscale does: |
Do I understand correctly that this should substitute mocknet ? 😃 |
Yes indeed. Mocknet shouldn't mock the swarm, only connections / streams. |
We have a lot of open questions, so removing help wanted for now. |
The requirement is ambiguous. We need to decide whether we want an in memory transport for testing where we can fake IP address and possibly simulate NAT or we want to implement a
The effort required in both the cases seems similar. |
That is correct. rust-libp2p's memory transport is very simple with a single uniform address space. It does not have any more complex mechanisms, e.g. NATs.
I would assume the opposite. While I think it is very simple to port rust-libp2p's |
I think you're right. I'll change my stance to |
I think a in-memory transport without faking IP addresses or simulating NATs is still useful for testing protocols. I think simulating NATs should be a separate task. I'm going to readd the help wanted label since I think we have a clearer idea of what we want here. Which is essentially the equivalent of rust-libp2p's |
Could I claim this issue? I think it would be a good intro for me to start contributing to go-libp2p (edit: I am part of PLDG cohort 1) |
go for it |
Hey @MarcoPolo could you assign issue on me and maybe refer me to someone who could take a look at this |
Add an in memory transport (similar to rust-libp2p) which can be used for testing https://docs.rs/libp2p/latest/libp2p/core/transport/struct.MemoryTransport.html
The text was updated successfully, but these errors were encountered: