mit-dci / lit

Lightning Network node software
MIT License
551 stars 119 forks source link

Connect lit via tor #253

Open Varunram opened 6 years ago

Varunram commented 6 years ago

Connect lit via tor. Lots of things done in this PR, built on top of brontide.

When starting lit, do ./lit --tor.active --tor.v2 --tn3 <host> -v

To connect to some host, run con adr@list.onion tor true from lit-af and then you should be connected to a remote onion address. Connecting to a clearnet address via tor is possible as well, normal syntax should work. Connecting via tor to remote Hosts for sync and connecting to a peer via tor is not possible (no bad opsec, sorry).

NOTE: This PR will fail tests because the tests would have to be rewritten as well, will rewrite. This also moves all config stuff to config/ because we need to access user provided config from lit-af and uspv as well.

Will fix tests towards the end after all incorporating all suggestions, doesn't make sense to write tests for constantly changing code.

Varunram commented 6 years ago

Since this is built on brontide, will merge after the BOLT PR is merged.

gertjaap commented 6 years ago

Since Brontide is now merged (right?) , could we finish this?

Varunram commented 6 years ago

Will update, thanks!

delbonis commented 6 years ago

Can I suggest using --tor-active and --tor-v2 instead of the . notation? it looks a little cleaner.