mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
876b91e1be
This new class encapsulates all functionality related to detecting a local Bitcoin node and reporting whether or not it was detected. Previously this functionality was spread across the Config class (formerly BisqEnvironment) with its mutable static isLocalBitcoinNodeRunning property and the BisqSetup class with its checkIfLocalHostNodeIsRunning method. All of this functionality now lives within the LocalBitcoinNode class, an instance of which is wired up via Guice and injected wherever necessary. Note that the code for detecting whether the node is running has been simplified, in that it is no longer wrapped in its own dedicated Thread. There appears to be no performance benefit from doing so, and leaving it in place would have made testing more difficult than necessary. Several methods in BisqSetup have also been refactored to accept callbacks indicating which step should be run next. This has the effect of clarifying when the step2()-step5() methods will be called. |
||
---|---|---|
.. | ||
src |