mirror of
https://github.com/bisq-network/bisq.git
synced 2025-01-18 21:35:03 +01:00
Do not reset addressEntries if its from cloned offers at cleanUpAddressEntries
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
13bcfb3121
commit
2651a88d5e
@ -227,7 +227,10 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
|
||||
}
|
||||
|
||||
private void cleanUpAddressEntries() {
|
||||
Set<String> openOffersIdSet = openOffers.getList().stream().map(OpenOffer::getId).collect(Collectors.toSet());
|
||||
Set<String> openOffersIdSet = openOffers.getList().stream()
|
||||
.filter(openOffer -> !hasOfferSharedMakerFee(openOffer))
|
||||
.map(OpenOffer::getId)
|
||||
.collect(Collectors.toSet());
|
||||
btcWalletService.getAddressEntriesForOpenOffer().stream()
|
||||
.filter(e -> !openOffersIdSet.contains(e.getOfferId()))
|
||||
.forEach(e -> {
|
||||
|
Loading…
Reference in New Issue
Block a user