aboutsummaryrefslogtreecommitdiff
path: root/src/torcontrol.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-09-24 22:40:05 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-10-01 19:00:07 +0300
commit57f17e57c8c410e10c16a46f7372c0ea8b7dd467 (patch)
tree3ac9a2e8f4cde956b30d72daacdcd2436e82249d /src/torcontrol.h
parente3f07851f02857b4844fccb2e91070c5cd3aad4d (diff)
downloadbitcoin-57f17e57c8c410e10c16a46f7372c0ea8b7dd467.tar.xz
net: Pass onion service target to Tor controller
Diffstat (limited to 'src/torcontrol.h')
-rw-r--r--src/torcontrol.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/torcontrol.h b/src/torcontrol.h
index 474a4d87d9..71a6960e54 100644
--- a/src/torcontrol.h
+++ b/src/torcontrol.h
@@ -8,12 +8,17 @@
#ifndef BITCOIN_TORCONTROL_H
#define BITCOIN_TORCONTROL_H
+#include <string>
+
+class CService;
extern const std::string DEFAULT_TOR_CONTROL;
static const bool DEFAULT_LISTEN_ONION = true;
-void StartTorControl();
+void StartTorControl(CService onion_service_target);
void InterruptTorControl();
void StopTorControl();
+CService DefaultOnionServiceTarget();
+
#endif /* BITCOIN_TORCONTROL_H */