]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
Settings: add melo.tools and blockchair onion block explorer
authortobtoht <thotbot@protonmail.com>
Sat, 14 Aug 2021 16:43:45 +0000 (18:43 +0200)
committertobtoht <thotbot@protonmail.com>
Wed, 15 Sep 2021 21:45:45 +0000 (23:45 +0200)
src/SettingsDialog.ui
src/utils/Utils.cpp

index 554d5e303a662a45cc2336846aad61ef04333e08..2a2e1521b0db045eaded198747e0cbd2fe4bca37 100644 (file)
            <string>xmrchain.net</string>
           </property>
          </item>
+         <item>
+          <property name="text">
+           <string>melo.tools</string>
+          </property>
+         </item>
          <item>
           <property name="text">
            <string>moneroblocks.info</string>
            <string>blockchair.com</string>
           </property>
          </item>
+         <item>
+          <property name="text">
+           <string>blkchairbknpn73cfjhevhla7rkp4ed5gg2knctvv7it4lioy22defid.onion</string>
+          </property>
+         </item>
         </widget>
        </item>
        <item row="1" column="0">
index eb1701698aea07b9df4dd53d756babee955952e0..6bbe95801550cf471dbf19c73c4749e0b87ab547 100644 (file)
@@ -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: