mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
d9f13230cf
All gossipd needs from common/tor is do_we_use_tor_addr(), so move that and the rest of the tor-specific handshake code into gossip/tor.c Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
18 lines
431 B
C
18 lines
431 B
C
#ifndef LIGHTNING_GOSSIPD_TOR_H
|
|
#define LIGHTNING_GOSSIPD_TOR_H
|
|
#include "config.h"
|
|
#include <stdbool.h>
|
|
|
|
struct wireaddr;
|
|
struct io_conn;
|
|
struct reaching;
|
|
|
|
bool do_we_use_tor_addr(const struct wireaddr *wireaddrs);
|
|
|
|
struct io_plan *io_tor_connect(struct io_conn *conn,
|
|
const struct wireaddr *tor_proxyaddrs,
|
|
const struct wireaddr *addr,
|
|
struct reaching *reach);
|
|
|
|
#endif /* LIGHTNING_GOSSIPD_TOR_H */
|