From eae3060c630c4902292dd47f7dae5fb6fd667a95 Mon Sep 17 00:00:00 2001 From: woodser Date: Fri, 23 Dec 2022 13:13:56 +0000 Subject: [PATCH] start seednode with monerod address to resolve warning initialize connection immediately if monerod address given --- Makefile | 1 + .../main/java/bisq/core/api/CoreMoneroConnectionsService.java | 3 +++ .../main/java/bisq/core/btc/wallet/MoneroKeyImagePoller.java | 1 - 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9cc639d5dc..40fdf03fca 100644 --- a/Makefile +++ b/Makefile @@ -100,6 +100,7 @@ seednode-local: --useDevPrivilegeKeys=true \ --nodePort=2002 \ --appName=haveno-XMR_LOCAL_Seed_2002 \ + --xmrNode=http://localhost:28081 \ arbitrator-daemon-local: # Arbitrator needs to be registered before making trades diff --git a/core/src/main/java/bisq/core/api/CoreMoneroConnectionsService.java b/core/src/main/java/bisq/core/api/CoreMoneroConnectionsService.java index 65ec788fe4..8c3ecaf5ce 100644 --- a/core/src/main/java/bisq/core/api/CoreMoneroConnectionsService.java +++ b/core/src/main/java/bisq/core/api/CoreMoneroConnectionsService.java @@ -102,6 +102,9 @@ public final class CoreMoneroConnectionsService { this.connectionManager = connectionManager; this.connectionList = connectionList; + // initialize immediately if monerod configured + if (!"".equals(config.xmrNode)) initialize(); + // initialize after account open and basic setup walletsSetup.addSetupTaskHandler(() -> { // TODO: use something better than legacy WalletSetup for notification to initialize diff --git a/core/src/main/java/bisq/core/btc/wallet/MoneroKeyImagePoller.java b/core/src/main/java/bisq/core/btc/wallet/MoneroKeyImagePoller.java index 5cc8221e38..af49708acb 100644 --- a/core/src/main/java/bisq/core/btc/wallet/MoneroKeyImagePoller.java +++ b/core/src/main/java/bisq/core/btc/wallet/MoneroKeyImagePoller.java @@ -232,7 +232,6 @@ public class MoneroKeyImagePoller { } } catch (Exception e) { log.warn("Error polling key images: " + e.getMessage()); - e.printStackTrace(); } } }