mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Merge pull request #3940 from ripcurlx/fix-duplicate-wallet-setup-for-local-nodes-on-mainnet
Use LocalBitcoinNode as singleton
This commit is contained in:
commit
7a0c34b8ad
@ -2,6 +2,7 @@ package bisq.core.btc.nodes;
|
||||
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Named;
|
||||
import javax.inject.Singleton;
|
||||
|
||||
import java.net.InetSocketAddress;
|
||||
import java.net.Socket;
|
||||
@ -15,6 +16,7 @@ import org.slf4j.LoggerFactory;
|
||||
* Detects whether a Bitcoin node is running on localhost.
|
||||
* @see bisq.common.config.Config#ignoreLocalBtcNode
|
||||
*/
|
||||
@Singleton
|
||||
public class LocalBitcoinNode {
|
||||
|
||||
public static final String LOCAL_BITCOIN_NODE_PORT = "localBitcoinNodePort";
|
||||
|
Loading…
Reference in New Issue
Block a user