From b33f53f9a5f86a420b8d01233a490aa1e2ec069e Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 19 Apr 2023 08:53:16 -0400 Subject: [PATCH] add error message if improperly registered seednode --- core/src/main/java/haveno/core/trade/TradeManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/haveno/core/trade/TradeManager.java b/core/src/main/java/haveno/core/trade/TradeManager.java index d3efd2b9a5..3ab6aa89e5 100644 --- a/core/src/main/java/haveno/core/trade/TradeManager.java +++ b/core/src/main/java/haveno/core/trade/TradeManager.java @@ -436,6 +436,7 @@ public class TradeManager implements PersistedDataHost, DecryptedDirectMessageLi xmrWalletService.setTradeManager(this); // process after all wallets initialized + if (HavenoUtils.havenoSetup == null) throw new IllegalStateException("HavenoSetup is null; is this an improperly registered seed node?"); MonadicBinding walletsInitialized = EasyBind.combine(HavenoUtils.havenoSetup.getWalletInitialized(), persistedTradesInitialized, (a, b) -> a && b); walletsInitialized.subscribe((observable, oldValue, newValue) -> { if (!newValue) return;