Browse Source

Settings: add melo.tools and blockchair onion block explorer

beta-9
tobtoht 4 months ago
parent
commit
6cbd81de7b
  1. 10
      src/SettingsDialog.ui
  2. 15
      src/utils/Utils.cpp

10
src/SettingsDialog.ui

@ -413,6 +413,11 @@
<string>xmrchain.net</string>
</property>
</item>
<item>
<property name="text">
<string>melo.tools</string>
</property>
</item>
<item>
<property name="text">
<string>moneroblocks.info</string>
@ -423,6 +428,11 @@
<string>blockchair.com</string>
</property>
</item>
<item>
<property name="text">
<string>blkchairbknpn73cfjhevhla7rkp4ed5gg2knctvv7it4lioy22defid.onion</string>
</property>
</item>
</widget>
</item>
<item row="1" column="0">

15
src/utils/Utils.cpp

@ -357,6 +357,21 @@ QString blockExplorerLink(const QString &blockExplorer, NetworkType::Type nettyp
return QString("https://blockchair.com/monero/transaction/%1").arg(txid);
}
}
else if (blockExplorer == "melo.tools") {
switch (nettype) {
case NetworkType::MAINNET:
return QString("https://melo.tools/explorer/mainnet/tx/%1").arg(txid);
case NetworkType::STAGENET:
return QString("https://melo.tools/explorer/stagenet/tx/%1").arg(txid);
case NetworkType::TESTNET:
return QString("https://melo.tools/explorer/testnet/tx/%1").arg(txid);
}
}
else if (blockExplorer == "blkchairbknpn73cfjhevhla7rkp4ed5gg2knctvv7it4lioy22defid.onion") {
if (nettype == NetworkType::MAINNET) {
return QString("http://blkchairbknpn73cfjhevhla7rkp4ed5gg2knctvv7it4lioy22defid.onion/monero/transaction/%1").arg(txid);
}
}
switch (nettype) {
case NetworkType::MAINNET:

Loading…
Cancel
Save