core-lightning/gossipd
Rusty Russell 1125682ceb wireaddr: new type, ADDR_INTERNAL_FORPROXY, use it if we can't/wont resolve.
Tor wasn't actually working for me to connect to anything, but it worked
for 'ssh -D' testing.

Note that the resulting 'netaddr' is a bit weird, but I guess it's honest.

    $ ./cli/lightning-cli connect 021f2cbffc4045ca2d70678ecf8ed75e488290874c9da38074f6d378248337062b
    {
      "id": "021f2cbffc4045ca2d70678ecf8ed75e488290874c9da38074f6d378248337062b"
    }
    $ ./cli/lightning-cli listpeers
    {
      "peers": [
        {
          "state": "GOSSIPING", 
          "id": "021f2cbffc4045ca2d70678ecf8ed75e488290874c9da38074f6d378248337062b", 
          "netaddr": [
            "ln1qg0je0lugpzu5ttsv78vlrkhteyg9yy8fjw68qr57mfhsfyrxurzkq522ah.lseed.bitcoinstats.com:9735"
          ], 
          "connected": true, 
          "owner": "lightning_gossipd"
        }
      ]
    }

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-05-11 09:15:54 +00:00
..
test routing: clean up channel public/active states. 2018-05-10 21:35:53 +02:00
broadcast.c broadcast: invert ownership of messages. 2018-05-10 21:35:53 +02:00
broadcast.h broadcast: invert ownership of messages. 2018-05-10 21:35:53 +02:00
gossip_store.c gossipd: Handle failed lseek(...) 2018-05-06 20:45:10 +02:00
gossip_store.csv gossip_store: Save local_add_channel messages and replay them 2018-04-22 12:50:34 +02:00
gossip_store.h gossip_store: Save local_add_channel messages and replay them 2018-04-22 12:50:34 +02:00
gossip_wire.csv gossipd: use a real update in local_add_channel. 2018-05-10 21:35:53 +02:00
gossip.c wireaddr: new type, ADDR_INTERNAL_FORPROXY, use it if we can't/wont resolve. 2018-05-11 09:15:54 +00:00
gossip.h gossip/tor.c: new file for socks proxy code. 2018-05-10 02:28:44 +00:00
handshake.c gossipd/lightningd: use wireaddr_internal. 2018-05-07 22:37:28 +02:00
handshake.h gossipd/lightningd: use wireaddr_internal. 2018-05-07 22:37:28 +02:00
Makefile gossipd: take over negotiation of autogenerated Tor addresses. 2018-05-10 02:28:44 +00:00
netaddress.c netaddress: fix up IsTor() 2018-05-10 02:28:44 +00:00
netaddress.h gossipd: don't try to connect to non-routable addresses. 2018-05-07 22:37:28 +02:00
routing.c routing: clean up channel public/active states. 2018-05-10 21:35:53 +02:00
routing.h routing: clean up channel public/active states. 2018-05-10 21:35:53 +02:00
tor_autoservice.c gossipd: take over negotiation of autogenerated Tor addresses. 2018-05-10 02:28:44 +00:00
tor_autoservice.h gossipd: take over negotiation of autogenerated Tor addresses. 2018-05-10 02:28:44 +00:00
tor.c tor: log proxy communications using status_io. 2018-05-11 09:15:54 +00:00
tor.h gossipd: hand io_tor_connect the host as a string. 2018-05-11 09:15:54 +00:00