Add equals check to prevent resetting of newly set Filter

This commit is contained in:
Christoph Atteneder 2020-06-25 12:40:49 +02:00
parent 1c9299a2e5
commit e50c7a6132
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B

View File

@ -17,7 +17,6 @@
package bisq.core.filter;
import bisq.core.account.witness.AccountAgeWitness;
import bisq.core.btc.nodes.BtcNodes;
import bisq.core.payment.payload.PaymentAccountPayload;
import bisq.core.payment.payload.PaymentMethod;
@ -153,7 +152,7 @@ public class FilterManager {
protectedStorageEntries.forEach(protectedStorageEntry -> {
if (protectedStorageEntry.getProtectedStoragePayload() instanceof Filter) {
Filter filter = (Filter) protectedStorageEntry.getProtectedStoragePayload();
if (verifySignature(filter))
if (verifySignature(filter) && getFilter().equals(filter))
resetFilters();
}
});