Skip to content

Commit

Permalink
Merge pull request #7041 from jmacxx/remove_wiz_bsq_explorer
Browse files Browse the repository at this point in the history
Remove reference to non-functioning BSQ explorer
  • Loading branch information
alejandrogarcia83 authored Feb 25, 2024
2 parents a3f5bf5 + b151d11 commit 42d40e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 10 additions & 0 deletions core/src/main/java/bisq/core/app/BisqSetup.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import bisq.core.support.dispute.refund.RefundManager;
import bisq.core.trade.TradeManager;
import bisq.core.trade.bisq_v1.TradeTxException;
import bisq.core.user.BlockChainExplorer;
import bisq.core.user.Preferences;
import bisq.core.user.User;
import bisq.core.util.FormattingUtils;
Expand Down Expand Up @@ -341,6 +342,7 @@ private void step4() {
maybeShowLocalhostRunningInfo();
maybeShowAccountSigningStateInfo();
maybeShowTorAddressUpgradeInformation();
maybeUpgradeBsqExplorerUrl();
checkInboundConnections();
}

Expand Down Expand Up @@ -783,6 +785,14 @@ private void maybeTriggerDisplayHandler(String key, Consumer<String> displayHand
}
}

private void maybeUpgradeBsqExplorerUrl() {
// if wiz BSQ explorer selected, replace with 1st explorer in the list of available.
if (preferences.getBsqBlockChainExplorer().name.equalsIgnoreCase("mempool.space (@wiz)") &&
preferences.getBsqBlockChainExplorers().size() > 0) {
preferences.setBsqBlockChainExplorer(preferences.getBsqBlockChainExplorers().get(0));
}
}

private void maybeShowTorAddressUpgradeInformation() {
if (Config.baseCurrencyNetwork().isRegtest() ||
Utils.isV3Address(Objects.requireNonNull(p2PService.getNetworkNode().getNodeAddress()).getHostName())) {
Expand Down
1 change: 0 additions & 1 deletion core/src/main/java/bisq/core/user/Preferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ public final class Preferences implements PersistedDataHost, BridgeAddressProvid
));

public static final ArrayList<BlockChainExplorer> BSQ_MAIN_NET_EXPLORERS = new ArrayList<>(Arrays.asList(
new BlockChainExplorer("mempool.space (@wiz)", "https://mempool.space/bisq/tx/", "https://mempool.space/bisq/address/"),
new BlockChainExplorer("bisq.mempool.emzy.de (@emzy)", "https://bisq.mempool.emzy.de/tx/", "https://bisq.mempool.emzy.de/address/"),
new BlockChainExplorer("mempool.bisq.services (@devinbileck)", "https://mempool.bisq.services/bisq/tx/", "https://mempool.bisq.services/bisq/address/")
));
Expand Down

0 comments on commit 42d40e5

Please sign in to comment.