Merge pull request #3940 from ripcurlx/fix-duplicate-wallet-setup-for-local-nodes-on-mainnet

Use LocalBitcoinNode as singleton
This commit is contained in:
Christoph Atteneder 2020-02-05 17:19:29 +01:00 committed by GitHub
commit 7a0c34b8ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";