mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 23:06:39 +01:00
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:
parent
6a9f340c20
commit
ba12943920
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue