Settings: add melo.tools and blockchair onion block explorer

This commit is contained in:
tobtoht 2021-08-14 18:43:45 +02:00
parent f494f61e24
commit 6cbd81de7b
2 changed files with 25 additions and 0 deletions

View file

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

View file

@ -357,6 +357,21 @@ QString blockExplorerLink(const QString &blockExplorer, NetworkType::Type nettyp
return QString("https://blockchair.com/monero/transaction/%1").arg(txid); 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) { switch (nettype) {
case NetworkType::MAINNET: case NetworkType::MAINNET: