Skip to content

Commit

Permalink
Remove betanet and testnet BSQ block explorers
Browse files Browse the repository at this point in the history
  • Loading branch information
wiz committed Dec 17, 2019
1 parent 78a72a2 commit e41df65
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions core/src/main/java/bisq/core/user/Preferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,6 @@ public final class Preferences implements PersistedDataHost, BridgeAddressProvid
new BlockChainExplorer("explorer.sqrrm.net (@sqrrm)", "https://explorer.sqrrm.net/tx.html?tx=", "https://explorer.sqrrm.net/Address.html?addr=")
));

private static final ArrayList<BlockChainExplorer> BSQ_BETA_NET_EXPLORERS = new ArrayList<>(Collections.singletonList(
new BlockChainExplorer("BSQ", "http://explorer.betanet.bisq.network/tx.html?tx=", "http://explorer.betanet.bisq.network/Address.html?addr=")
));

private static final ArrayList<BlockChainExplorer> BSQ_TEST_NET_EXPLORERS = new ArrayList<>(Collections.singletonList(
new BlockChainExplorer("BSQ", "http://explorer.testnet.bisq.network/tx.html?tx=", "http://explorer.testnet.bisq.network/Address.html?addr=")
));

// payload is initialized so the default values are available for Property initialization.
@Setter
@Delegate(excludes = ExcludesDelegateMethods.class)
Expand Down Expand Up @@ -733,16 +725,7 @@ public ArrayList<BlockChainExplorer> getBlockChainExplorers() {
}
}

public ArrayList<BlockChainExplorer> getBsqBlockChainExplorers()
{
BaseCurrencyNetwork baseCurrencyNetwork = BisqEnvironment.getBaseCurrencyNetwork();
if (baseCurrencyNetwork.isMainnet())
return BSQ_MAIN_NET_EXPLORERS;
else if (baseCurrencyNetwork.isDaoBetaNet())
return BSQ_BETA_NET_EXPLORERS;
else // testnet
return BSQ_TEST_NET_EXPLORERS;
}
public ArrayList<BlockChainExplorer> getBsqBlockChainExplorers() { return BSQ_MAIN_NET_EXPLORERS; }

public boolean showAgain(String key) {
return !prefPayload.getDontShowAgainMap().containsKey(key) || !prefPayload.getDontShowAgainMap().get(key);
Expand Down

0 comments on commit e41df65

Please sign in to comment.