mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-24 23:09:36 -05:00
add error message if improperly registered seednode
This commit is contained in:
parent
d0a6646bcd
commit
b33f53f9a5
@ -436,6 +436,7 @@ public class TradeManager implements PersistedDataHost, DecryptedDirectMessageLi
|
|||||||
xmrWalletService.setTradeManager(this);
|
xmrWalletService.setTradeManager(this);
|
||||||
|
|
||||||
// process after all wallets initialized
|
// process after all wallets initialized
|
||||||
|
if (HavenoUtils.havenoSetup == null) throw new IllegalStateException("HavenoSetup is null; is this an improperly registered seed node?");
|
||||||
MonadicBinding<Boolean> walletsInitialized = EasyBind.combine(HavenoUtils.havenoSetup.getWalletInitialized(), persistedTradesInitialized, (a, b) -> a && b);
|
MonadicBinding<Boolean> walletsInitialized = EasyBind.combine(HavenoUtils.havenoSetup.getWalletInitialized(), persistedTradesInitialized, (a, b) -> a && b);
|
||||||
walletsInitialized.subscribe((observable, oldValue, newValue) -> {
|
walletsInitialized.subscribe((observable, oldValue, newValue) -> {
|
||||||
if (!newValue) return;
|
if (!newValue) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user