update stagenet explorer

This commit is contained in:
woodser 2022-07-14 11:39:57 -04:00
parent f36af3a557
commit 003fac3da4

View file

@ -112,8 +112,8 @@ public final class Preferences implements PersistedDataHost, BridgeAddressProvid
private static final ArrayList<BlockChainExplorer> XMR_MAIN_NET_EXPLORERS = new ArrayList<>(Arrays.asList( private static final ArrayList<BlockChainExplorer> XMR_MAIN_NET_EXPLORERS = new ArrayList<>(Arrays.asList(
new BlockChainExplorer("xmrchain.net", "https://xmrchain.net/tx/", "") new BlockChainExplorer("xmrchain.net", "https://xmrchain.net/tx/", "")
)); ));
private static final ArrayList<BlockChainExplorer> XMR_TEST_NET_EXPLORERS = new ArrayList<>(Arrays.asList( private static final ArrayList<BlockChainExplorer> XMR_STAGE_NET_EXPLORERS = new ArrayList<>(Arrays.asList(
new BlockChainExplorer("testnet.xmrchain.net", "https://testnet.xmrchain.net/tx/", "") new BlockChainExplorer("stagenet.xmrchain.net", "https://stagenet.xmrchain.net/tx/", "")
)); ));
private static final ArrayList<String> XMR_TX_PROOF_SERVICES_CLEAR_NET = new ArrayList<>(Arrays.asList( private static final ArrayList<String> XMR_TX_PROOF_SERVICES_CLEAR_NET = new ArrayList<>(Arrays.asList(
@ -273,10 +273,10 @@ public final class Preferences implements PersistedDataHost, BridgeAddressProvid
BaseCurrencyNetwork baseCurrencyNetwork = Config.baseCurrencyNetwork(); BaseCurrencyNetwork baseCurrencyNetwork = Config.baseCurrencyNetwork();
if ("BTC".equals(baseCurrencyNetwork.getCurrencyCode())) { if ("BTC".equals(baseCurrencyNetwork.getCurrencyCode())) {
setBlockChainExplorerMainNet(BTC_MAIN_NET_EXPLORERS.get(0)); setBlockChainExplorerMainNet(BTC_MAIN_NET_EXPLORERS.get(0));
setBlockChainExplorerTestNet(BTC_TEST_NET_EXPLORERS.get(0)); setBlockChainExplorerStageNet(BTC_TEST_NET_EXPLORERS.get(0));
} else if ("XMR".equals(baseCurrencyNetwork.getCurrencyCode())) { } else if ("XMR".equals(baseCurrencyNetwork.getCurrencyCode())) {
setBlockChainExplorerMainNet(XMR_MAIN_NET_EXPLORERS.get(0)); setBlockChainExplorerMainNet(XMR_MAIN_NET_EXPLORERS.get(0));
setBlockChainExplorerTestNet(XMR_TEST_NET_EXPLORERS.get(0)); setBlockChainExplorerStageNet(XMR_STAGE_NET_EXPLORERS.get(0));
} else { } else {
throw new RuntimeException("BaseCurrencyNetwork not defined. BaseCurrencyNetwork=" + baseCurrencyNetwork); throw new RuntimeException("BaseCurrencyNetwork not defined. BaseCurrencyNetwork=" + baseCurrencyNetwork);
} }
@ -420,7 +420,7 @@ public final class Preferences implements PersistedDataHost, BridgeAddressProvid
if (Config.baseCurrencyNetwork().isMainnet()) if (Config.baseCurrencyNetwork().isMainnet())
setBlockChainExplorerMainNet(blockChainExplorer); setBlockChainExplorerMainNet(blockChainExplorer);
else else
setBlockChainExplorerTestNet(blockChainExplorer); setBlockChainExplorerStageNet(blockChainExplorer);
} }
public void setTacAccepted(boolean tacAccepted) { public void setTacAccepted(boolean tacAccepted) {
@ -632,7 +632,7 @@ public final class Preferences implements PersistedDataHost, BridgeAddressProvid
requestPersistence(); requestPersistence();
} }
private void setBlockChainExplorerTestNet(BlockChainExplorer blockChainExplorerTestNet) { private void setBlockChainExplorerStageNet(BlockChainExplorer blockChainExplorerTestNet) {
prefPayload.setBlockChainExplorerTestNet(blockChainExplorerTestNet); prefPayload.setBlockChainExplorerTestNet(blockChainExplorerTestNet);
requestPersistence(); requestPersistence();
} }