Make sure that class is only instantiated once

This fixes an error when running a local Bitcoin Core for Mainnet
caused by a duplicate wallet setup
This commit is contained in:
Christoph Atteneder 2020-02-05 16:56:59 +01:00
parent 6a9f340c20
commit ba12943920
No known key found for this signature in database
GPG key ID: CD5DC1C529CDFD3B

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