Commit Graph

30 Commits

Author SHA1 Message Date
Chris Stewart
5036b37729
2022 05 11 tor race condition (#4333)
* WIP tor race condition debug

* Fix race condition between starting node and starting tor

* Remove extra log
2022-05-11 16:38:24 -05:00
Chris Stewart
6356a50a89
Add log for tor being provided (#4329)
* Add log for tor being provided

* Remove duplicate log
2022-05-10 18:02:02 -05:00
Chris Stewart
488716d10a
Add ProcessLogger to ProcessBuilder so that we capture logs from binaries like tor (#4327) 2022-05-10 13:53:36 -05:00
rorp
715639033c
Support for Tor Docker (#4223) 2022-03-29 08:10:34 -05:00
Chris Stewart
3136b228fd
Log hidden service address (#4212) 2022-03-24 08:34:51 -05:00
Chris Stewart
fe86233489
Add better tor message to UI (#4181)
* Add better tor message to UI

* Fix compile
2022-03-11 11:17:52 -06:00
benthecarman
142612f034
Make newConfigOfType use Vector[Config] (#4039) 2022-02-04 06:14:16 -06:00
Chris Stewart
e802254a20
2022 01 24 rm appconfig varargs (#4011)
* Get things compiling

* Get tests passing

* Fix docs
2022-01-25 07:25:05 -06:00
rorp
2dcbe73504
Update Tor version to 0.4.6.9 (#3993)
* Update Tor version to 0.4.6.9

* remove PluggableTransports
2022-01-19 14:58:13 -06:00
benthecarman
169222a306
Add default proxy params (#3863) 2021-12-01 12:28:59 -06:00
rorp
e02c9bba12
Overridable Tor config (#3780) 2021-10-27 12:57:10 -05:00
rorp
704b02ae6c
Use random ports for pre-packaged Tor daemon (#3604)
* Use random ports for pre-packaged Tor daemon

* fix unit tests

* configurable random ports

* shutdown hook
2021-08-26 13:02:49 -05:00
benthecarman
495ab62104
Tor in Testkit (#3484)
* Tor packaged for testkit

* Add CI row

* Small fixes

* More fixes

* Keep tor running

* Skip tor test for old version of bitcoind

* Respond to review

* Fix with master

* Bump tor start time to same as app config

* Use cached tor for DLCNodeTest

* Disable parallel execution for dlc node test with tor

* Fix DLCNodeTest for tor and clearnet

* Fix name of CI rows
2021-08-23 13:06:14 -05:00
Chris Stewart
e62615dc5e
Add guard to not allow us to check the network configuration on bitcoind (#3582)
* Add guard to not allow us to check the network configuration on bitcoind if we are using tor because tor isn't started yet

* Remove unecessary logs, revert config
2021-08-20 14:49:37 -05:00
benthecarman
cebd289dd6
Implement versioning for packaged tor (#3576) 2021-08-19 13:49:02 -05:00
rorp
c915711908
Make Tor setup Docker compatible (#3552) 2021-08-19 08:13:23 -07:00
benthecarman
addb1254ee
Fix for if tor is already running (#3562) 2021-08-17 09:47:31 -05:00
Chris Stewart
f2e68bbfc5
Add guard for the case where tor binary hasn't created log file yet (#3558)
* Add guard for the case where tor binary hasn't created log file yet

* Bump timeout

* Bump tor timeout to 1 minute
2021-08-16 17:45:55 -05:00
Chris Stewart
b7d85264a0
Implement TorAppConfig.start(), use tor logs to detect when the tor is fully started (#3549)
* Implement TorAppConfig.start(), use tor logs to detect when the tor binary is fully started

* Clean up comments

* take ben's suggestion and only start the binary when tor is enabled

* Add cases for when binary is alreayd started

* Actually set the stop flag correctly

* Scalafmt
2021-08-15 14:01:12 -05:00
Chris Stewart
ddd27c3d89
Add TorBundle, make all mac files executable that are required (#3534)
* Add TorBundle, make all mac files executable that are required

* Remove old comment
2021-08-12 11:20:50 -05:00
benthecarman
43e0287fed
Package Tor with Bitcoin-s (#3483)
* Tor packaged in Bitcoin-S

* Ensure not a bridge relay

* Respond to review

* Move repeat function
2021-08-10 11:56:17 -05:00
rorp
3d4cf1fc91
Tor support for all sub-projects (#3506) 2021-08-10 08:07:12 -05:00
Chris Stewart
4f7b6422ea
2021 08 06 app config refacotr (#3498)
* Move AppConfig into app-commons, reduce classpath deps on keyManager,tor

* Move test ServerArgParserTest

* Fix compile error
2021-08-07 14:36:11 -05:00
benthecarman
b39ca47268
Create TorAppConfig (#3476) 2021-08-04 14:16:22 -05:00
rorp
ca40af5d94
Tor support for BTC RPC (#3470)
* Tor support for BTC RPC

* change config format
2021-08-03 11:07:05 -05:00
benthecarman
1051e6365a
DLC P2P Client (#3402)
* DLC P2P WIP

* P2PClient refactor (#10)

* Add to CI

* Remove unused

* Attempt to create DLCNode and Tests

* Full Tor support

* Get DLCNegotiationTest passing

* Config options, connect & send func

* Test for DLCNode

* Add createDLCNode to config

* Fix formatting

* Update DLC state after all other data is set

* Remove unneeded line

* Respond to some review

* 2021 07 26 dlc node code review (#13)

* WIP

* WIP2

* Rewrite tests not use Await.result()

* Skip Tor test on CI

* Cleanup threadpool leaks in tests

* Handle actor pattern matching better

* Respond to review

* Implement DLCNode.stop

* sock5 -> socks5

* Use Tcp.Unbind

* Respond to review

* Implement postStop

* Switch to unbind

Co-authored-by: rorp <rorp@users.noreply.github.com>
Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2021-08-02 18:15:56 -05:00
rorp
59963156bc
Hidden service setup helper (#3423) 2021-07-19 12:24:07 -07:00
rorp
16e8554756
SOCKS5 client transport (#3396)
* SOCKS5 client transport

* disable unit tests

* update unit tests

* respond to the PR comments

* cleanup

* some more changes
2021-07-19 12:55:23 -05:00
rorp
8b663d91b6
Tor support for P2P (#3311)
* Tor support for P2P

* fix stuck connections

* unit tests

* docs

* update docs

* respond to the PR comments

* fix docs
2021-07-13 14:27:24 -05:00
rorp
02c4505948
Initial Tor support (#3043)
* Initial Tor support

* cleanup
2021-05-07 06:43:39 -05:00