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

implement 'relay only' mode #4197

Open
whyrusleeping opened this issue Sep 2, 2017 · 9 comments
Open

implement 'relay only' mode #4197

whyrusleeping opened this issue Sep 2, 2017 · 9 comments
Labels
help wanted Seeking public contribution on this issue need/community-input Needs input from the wider community

Comments

@whyrusleeping
Copy link
Member

It would be very useful to have a mode where you can run ipfs entirely over relayed connections. This would allow lower powered devices to be able to interact with the ipfs network more easily.

@whyrusleeping whyrusleeping added need/community-input Needs input from the wider community help wanted Seeking public contribution on this issue labels Sep 2, 2017
@kevina
Copy link
Contributor

kevina commented Sep 2, 2017

I agree, I think I may of brought this up before, although it might of only been on IRC. It has lots of uses beyond low power usage.

@Stebalien
Copy link
Member

Related but slightly different (for people reading one but not the other): #4110

@magik6k
Copy link
Member

magik6k commented Sep 2, 2017

Some sort of RemoteBlockstore which would pass block requests to a Gateway is an option too. With API Tokens this could be extended to some sort of light node which would manage it's own secrets, but rely on other peers for connectivity.

@whyrusleeping
Copy link
Member Author

@magik6k oooh, yeah. that would be really nice, passing getblocks calls to ipfs.io/api/v0/blocks/get

@vyzo
Copy link
Contributor

vyzo commented Sep 3, 2017

Of course such nodes will still need to bootstrap using regular connectivity.

@whyrusleeping
Copy link
Member Author

We could probably implement a very simple version of this by allowing users to specify no swarm listener addresses. Then if they dial out to a relay peer, others can connect to them via the relay.

@vyzo
Copy link
Contributor

vyzo commented Sep 6, 2017

We will also need to advertise the relay addresses to the DHT in this case.

@whyrusleeping
Copy link
Member Author

@vyzo Yeah, good point. We can probably do that by putting them in the Addresses.Announce config field.

@foxcool
Copy link

foxcool commented Mar 24, 2018

Also this ligth mode can be used on laptops.

Linux laptop with SYSTEMD or another service manager. On AC-power all p2p nodes used on full mode: download, upload. But on battery mode all services reloads in light mode and only read the data.

It feature can be realised in libP2P framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Seeking public contribution on this issue need/community-input Needs input from the wider community
Projects
None yet
Development

No branches or pull requests

6 participants