Merge pull request #5974 from ripcurlx/fix-republishing-of-account-age-witnesses

Not create and publish account age witnesses for BSQ swap accounts
This commit is contained in:
Bisq GitHub Admin 2022-01-20 09:46:24 +01:00 committed by GitHub
commit 4ff202b73d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,6 @@ import bisq.core.locale.Res;
import bisq.core.offer.Offer;
import bisq.core.offer.OfferDirection;
import bisq.core.offer.OfferRestrictions;
import bisq.core.payment.AssetAccount;
import bisq.core.payment.ChargeBackRisk;
import bisq.core.payment.PaymentAccount;
import bisq.core.payment.payload.PaymentAccountPayload;
@ -228,7 +227,7 @@ public class AccountAgeWitnessService {
private void republishAllFiatAccounts() {
if (user.getPaymentAccounts() != null)
user.getPaymentAccounts().stream()
.filter(account -> !(account instanceof AssetAccount))
.filter(account -> account.getPaymentMethod().isFiat())
.forEach(account -> {
AccountAgeWitness myWitness = getMyWitness(account.getPaymentAccountPayload());
// We only publish if the date of our witness is inside the date tolerance.