mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Move setup code for tradeManager to onAllServicesInitialized method
This commit is contained in:
parent
74c2c0cf61
commit
9d42031187
2 changed files with 7 additions and 7 deletions
|
@ -584,17 +584,10 @@ public class BisqSetup {
|
|||
disputeManager.onAllServicesInitialized();
|
||||
|
||||
tradeManager.onAllServicesInitialized();
|
||||
tradeManager.getAddressEntriesForAvailableBalanceStream()
|
||||
.filter(addressEntry -> addressEntry.getOfferId() != null)
|
||||
.forEach(addressEntry -> {
|
||||
log.warn("Swapping pending OFFER_FUNDING entries at startup. offerId={}", addressEntry.getOfferId());
|
||||
btcWalletService.swapTradeEntryToAvailableEntry(addressEntry.getOfferId(), AddressEntry.Context.OFFER_FUNDING);
|
||||
});
|
||||
|
||||
if (walletsSetup.downloadPercentageProperty().get() == 1)
|
||||
checkForLockedUpFunds();
|
||||
|
||||
|
||||
openOfferManager.onAllServicesInitialized();
|
||||
|
||||
balances.onAllServicesInitialized();
|
||||
|
|
|
@ -239,6 +239,13 @@ public class TradeManager implements PersistedDataHost {
|
|||
|
||||
tradableList.getList().addListener((ListChangeListener<Trade>) change -> onTradesChanged());
|
||||
onTradesChanged();
|
||||
|
||||
getAddressEntriesForAvailableBalanceStream()
|
||||
.filter(addressEntry -> addressEntry.getOfferId() != null)
|
||||
.forEach(addressEntry -> {
|
||||
log.warn("Swapping pending OFFER_FUNDING entries at startup. offerId={}", addressEntry.getOfferId());
|
||||
btcWalletService.swapTradeEntryToAvailableEntry(addressEntry.getOfferId(), AddressEntry.Context.OFFER_FUNDING);
|
||||
});
|
||||
}
|
||||
|
||||
public void shutDown() {
|
||||
|
|
Loading…
Add table
Reference in a new issue