Commit Graph

1758 Commits

Author SHA1 Message Date
jl777
945f015d80 Initial merge 2017-03-30 04:35:16 +03:00
jl777
66294e69b2 Remove prints 2017-03-25 19:32:17 +02:00
Wladimir J. van der Laan
eb5f63fe58 net: Automatically create hidden service, listen on Tor
Starting with Tor version 0.2.7.1 it is possible, through Tor's control socket
API, to create and destroy 'ephemeral' hidden services programmatically.
https://stem.torproject.org/api/control.html#stem.control.Controller.create_ephemeral_hidden_service

This means that if Tor is running (and proper authorization is available),
bitcoin automatically creates a hidden service to listen on, without user
manual configuration. This will positively affect the number of available
.onion nodes.

- When the node is started, connect to Tor through control socket
- Send `ADD_ONION` command
- First time:
    - Make it create a hidden service key
    - Save the key in the data directory for later usage
- Make it redirect port 8333 to the local port 8333 (or whatever port we're listening on).
- Keep control socket connection open for as long node is running. The hidden service will
  (by default) automatically go away when the connection is closed.
2017-03-25 20:22:09 +13:00
jl777
3d02f57b42 Test 2017-03-25 01:10:50 +02:00
jl777
3bc88f1451 Test 2017-03-24 23:46:52 +02:00
jl777
d01c0463e7 Test 2017-03-24 23:27:24 +02:00
jl777
ea5f02cb0a Test 2017-03-24 22:49:11 +02:00
jl777
1691b50b8d Test 2017-03-24 22:35:34 +02:00
jl777
14aa6cc0e2 Initial 2017-03-24 22:28:13 +02:00
jl777
eeef062480 Test 2017-03-24 07:40:34 +02:00
jl777
c8e854e4c6 Test 2017-03-24 07:38:40 +02:00
jl777
b60897a511 Test 2017-03-24 07:35:46 +02:00
jl777
e8d79f05b8 Test 2017-03-24 07:31:40 +02:00
jl777
464fe491ab Test 2017-03-24 07:23:55 +02:00
jl777
ac6feaa8a0 Test 2017-03-24 07:10:51 +02:00
jl777
380b93d768 Test 2017-03-24 07:10:28 +02:00
jl777
40a24f8f9d Test 2017-03-24 06:39:12 +02:00
jl777
b2ae2b2507 Test 2017-03-24 06:30:40 +02:00
jl777
a7869456ac Test 2017-03-24 06:12:46 +02:00
jl777
3d8d574eac Test 2017-03-24 06:06:45 +02:00
jl777
354dc58a3b Test 2017-03-24 06:05:51 +02:00
jl777
f4ad37c547 Test 2017-03-24 06:04:52 +02:00
jl777
5aa4223f1e Test 2017-03-24 06:03:46 +02:00
jl777
2f852a342c Test 2017-03-24 05:59:38 +02:00
jl777
3afed2e718 Test 2017-03-24 05:45:13 +02:00
jl777
e6528c640c Test 2017-03-24 05:25:46 +02:00
jl777
129d39b037 Test 2017-03-24 05:14:44 +02:00
jl777
6ec8416f90 Test 2017-03-24 05:12:32 +02:00
jl777
7d1067177e Test 2017-03-24 04:39:52 +02:00
jl777
45142781ec Test 2017-03-24 04:37:21 +02:00
jl777
4e4e39abfb Test 2017-03-24 04:35:23 +02:00
jl777
310bb0a1b9 Test 2017-03-24 04:20:21 +02:00
jl777
8abcd8195e Test 2017-03-24 04:20:04 +02:00
jl777
4f7a54254f Test 2017-03-24 04:12:06 +02:00
jl777
045850921e Test 2017-03-24 03:51:56 +02:00
jl777
afc067b728 Test 2017-03-24 03:42:17 +02:00
jl777
a43b1a1838 Test 2017-03-24 03:31:24 +02:00
jl777
d8be8b2ef7 Test 2017-03-24 03:22:43 +02:00
jl777
aa8eaec46f Test 2017-03-24 03:05:51 +02:00
jl777
e8950acaa7 Test 2017-03-24 02:54:30 +02:00
jl777
01efddaecf Test 2017-03-24 02:52:45 +02:00
jl777
f25914ebf5 Test 2017-03-24 02:45:32 +02:00
jl777
4ba649d62d test 2017-03-24 02:44:30 +02:00
jl777
044a7b96eb Test 2017-03-24 02:42:27 +02:00
jl777
3345b00203 Test 2017-03-24 02:30:22 +02:00
jl777
03be8eb889 Test 2017-03-24 02:26:05 +02:00
jl777
2af7fbc524 Test 2017-03-24 02:24:55 +02:00
jl777
ccd177d94f Test 2017-03-24 02:23:12 +02:00
jl777
c1004caa42 Test 2017-03-24 02:21:23 +02:00
jl777
0cb1d2da0d Test 2017-03-24 02:09:32 +02:00