add second seed node
This commit is contained in:
parent
a70fd2b18c
commit
92fb41fffa
9
Makefile
9
Makefile
@ -122,6 +122,15 @@ seednode-local:
|
|||||||
--appName=haveno-XMR_LOCAL_Seed_2002 \
|
--appName=haveno-XMR_LOCAL_Seed_2002 \
|
||||||
--xmrNode=http://localhost:28081 \
|
--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-daemon-local:
|
||||||
# Arbitrator needs to be registered before making trades
|
# Arbitrator needs to be registered before making trades
|
||||||
./haveno-daemon$(APP_EXT) \
|
./haveno-daemon$(APP_EXT) \
|
||||||
|
@ -449,22 +449,23 @@ 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?");
|
if (HavenoUtils.havenoSetup != null) { // null for seednode
|
||||||
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;
|
||||||
|
|
||||||
// thaw unreserved outputs
|
// thaw unreserved outputs
|
||||||
thawUnreservedOutputs();
|
thawUnreservedOutputs();
|
||||||
|
|
||||||
// reset any available funded address entries
|
// reset any available funded address entries
|
||||||
xmrWalletService.getAddressEntriesForAvailableBalanceStream()
|
xmrWalletService.getAddressEntriesForAvailableBalanceStream()
|
||||||
.filter(addressEntry -> addressEntry.getOfferId() != null)
|
.filter(addressEntry -> addressEntry.getOfferId() != null)
|
||||||
.forEach(addressEntry -> {
|
.forEach(addressEntry -> {
|
||||||
log.warn("Swapping pending {} entries at startup. offerId={}", addressEntry.getContext(), addressEntry.getOfferId());
|
log.warn("Swapping pending {} entries at startup. offerId={}", addressEntry.getContext(), addressEntry.getOfferId());
|
||||||
xmrWalletService.swapTradeEntryToAvailableEntry(addressEntry.getOfferId(), addressEntry.getContext());
|
xmrWalletService.swapTradeEntryToAvailableEntry(addressEntry.getOfferId(), addressEntry.getContext());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// notify that persisted trades initialized
|
// notify that persisted trades initialized
|
||||||
persistedTradesInitialized.set(true);
|
persistedTradesInitialized.set(true);
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# nodeaddress.onion:port [(@owner,@backup)]
|
# nodeaddress.onion:port [(@owner,@backup)]
|
||||||
localhost:2002 (@devtest1)
|
localhost:2002 (@devtest1)
|
||||||
localhost:3002 (@devtest2)
|
localhost:2003 (@devtest2)
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# nodeaddress.onion:port [(@owner)]
|
# nodeaddress.onion:port [(@owner)]
|
||||||
dl57jitswby4yhzpqpu7pwq6iyqg2x6vkio73araparbftlqoqxhvqad.onion:2002 (@devtest1)
|
dl57jitswby4yhzpqpu7pwq6iyqg2x6vkio73araparbftlqoqxhvqad.onion:2002 (@devtest1)
|
||||||
|
3cqlkowdu766sto5wrdqpntpsi7kezwkkakc532i6jeiyu7hha726ead.onion:3003 (@devtest1)
|
||||||
|
Loading…
Reference in New Issue
Block a user