mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
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:
commit
4ff202b73d
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user