Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hint to upgrade to tor v3 #5573

Merged
merged 9 commits into from
Jun 23, 2021
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import bisq.core.dao.DaoFacade;
import bisq.core.locale.CurrencyUtil;
import bisq.core.locale.Res;
import bisq.core.offer.OfferRestrictions;
import bisq.core.support.SupportType;
import bisq.core.support.dispute.Dispute;
import bisq.core.support.dispute.DisputeList;
Expand All @@ -58,6 +59,7 @@

import bisq.network.p2p.NodeAddress;
import bisq.network.p2p.P2PService;
import bisq.network.utils.Utils;

import bisq.common.UserThread;
import bisq.common.crypto.KeyRing;
Expand Down Expand Up @@ -542,6 +544,11 @@ protected boolean reOpenDispute() {
private boolean isDisputeWithSameCurrentNodeAddress(Dispute dispute, boolean isMediator) {
NodeAddress disputeNodeAddress = isMediator ? dispute.getContract().getMediatorNodeAddress() :
dispute.getContract().getMyNodeAddress(keyRing.getPubKeyRing());

if (OfferRestrictions.requiresNodeAddressUpdate() && !Utils.isV3Address(disputeNodeAddress.getHostName())) {
return false;
}

return Objects.equals(p2PService.getNetworkNode().getNodeAddress(), disputeNodeAddress);
}

Expand Down