diff options
| author | bitflash-maintainer <noreply@bitflash.invalid> | 2026-09-06 01:53:03 +0000 |
|---|---|---|
| committer | bitflash-maintainer <noreply@bitflash.invalid> | 2026-09-06 01:53:03 +0000 |
| commit | ef9f06d43fc6577c15df2256abbb25b20d4227b8 (patch) | |
| tree | 7e9132aa871fdc01cb95268d2f5ea3bb11853ddf /src/tor.h | |
| parent | be63e83d79e7e00e6b8ca889a70e6a19886aa1d8 (diff) | |
| parent | ceae3d076b5ad11ee84729ae43f14e9312896646 (diff) | |
Bring main onto the line this project actually ships (incl. the 1.2.23 compactblock port)
Closes #6, #7, #8, #11, #35, #34, #29, #28, #27, and #16
See merge request !16
Diffstat (limited to 'src/tor.h')
| -rw-r--r-- | src/tor.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/tor.h b/src/tor.h new file mode 100644 index 0000000..cfb87a5 --- /dev/null +++ b/src/tor.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | // Copyright (c) 2026 Bitflash developers | ||
| 2 | // Distributed under the MIT/X11 software license. | ||
| 3 | // | ||
| 4 | // Managed Tor process support. This is transport bootstrapping only: it does | ||
| 5 | // not touch consensus, wallet keys, mining, or the .btf identity. | ||
| 6 | |||
| 7 | #ifndef BITFLASH_TOR_H | ||
| 8 | #define BITFLASH_TOR_H | ||
| 9 | |||
| 10 | #include <string> | ||
| 11 | |||
| 12 | bool BtfStartManagedTor(const std::string& torPathOpt, std::string& errOut); | ||
| 13 | void BtfStopManagedTor(); | ||
| 14 | bool BtfManagedTorEnabled(); | ||
| 15 | std::string BtfManagedTorStatus(); | ||
| 16 | bool BtfBundledTorPath(std::string& torPathOut); | ||
| 17 | |||
| 18 | std::string BtfBuildManagedTorrcForTest(const std::string& dataDir, | ||
| 19 | const std::string& hiddenServiceDir, | ||
| 20 | unsigned short socksPort, | ||
| 21 | unsigned short controlPort, | ||
| 22 | unsigned short p2pPort); | ||
| 23 | |||
| 24 | #endif | ||