reset xmr address entries on offer removed

This commit is contained in:
woodser 2022-07-14 21:42:18 -04:00
parent f9c5cd1f2c
commit 7b355ff70a

View File

@ -256,7 +256,7 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
log.warn("We found an outdated addressEntry for openOffer {} (openOffers does not contain that " +
"offer), offers.size={}",
e.getOfferId(), openOffers.size());
btcWalletService.resetAddressEntriesForOpenOffer(e.getOfferId());
xmrWalletService.resetAddressEntriesForOpenOffer(e.getOfferId());
});
}
@ -570,7 +570,7 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
openOffers.remove(openOffer);
closedTradableManager.add(openOffer);
log.info("onRemoved offerId={}", offer.getId());
btcWalletService.resetAddressEntriesForOpenOffer(offer.getId());
xmrWalletService.resetAddressEntriesForOpenOffer(offer.getId());
requestPersistence();
}