add second seed node

This commit is contained in:
woodser 2023-05-31 17:14:42 -04:00
parent a70fd2b18c
commit 92fb41fffa
4 changed files with 28 additions and 18 deletions

View file

@ -122,6 +122,15 @@ seednode-local:
--appName=haveno-XMR_LOCAL_Seed_2002 \
--xmrNode=http://localhost:28081 \
seednode2-local:
./haveno-seednode$(APP_EXT) \
--baseCurrencyNetwork=XMR_LOCAL \
--useLocalhostForP2P=true \
--useDevPrivilegeKeys=true \
--nodePort=2003 \
--appName=haveno-XMR_LOCAL_Seed_2003 \
--xmrNode=http://localhost:28081 \
arbitrator-daemon-local:
# Arbitrator needs to be registered before making trades
./haveno-daemon$(APP_EXT) \

View file

@ -449,7 +449,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?");
if (HavenoUtils.havenoSetup != null) { // null for seednode
MonadicBinding<Boolean> walletsInitialized = EasyBind.combine(HavenoUtils.havenoSetup.getWalletInitialized(), persistedTradesInitialized, (a, b) -> a && b);
walletsInitialized.subscribe((observable, oldValue, newValue) -> {
if (!newValue) return;
@ -465,6 +465,7 @@ public class TradeManager implements PersistedDataHost, DecryptedDirectMessageLi
xmrWalletService.swapTradeEntryToAvailableEntry(addressEntry.getOfferId(), addressEntry.getContext());
});
});
}
// notify that persisted trades initialized
persistedTradesInitialized.set(true);

View file

@ -1,3 +1,3 @@
# nodeaddress.onion:port [(@owner,@backup)]
localhost:2002 (@devtest1)
localhost:3002 (@devtest2)
localhost:2003 (@devtest2)

View file

@ -1,3 +1,3 @@
# nodeaddress.onion:port [(@owner)]
dl57jitswby4yhzpqpu7pwq6iyqg2x6vkio73araparbftlqoqxhvqad.onion:2002 (@devtest1)
3cqlkowdu766sto5wrdqpntpsi7kezwkkakc532i6jeiyu7hha726ead.onion:3003 (@devtest1)