From 6cbd81de7b10706f582ba66baec09094569d3330 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Sat, 14 Aug 2021 18:43:45 +0200 Subject: [PATCH] Settings: add melo.tools and blockchair onion block explorer --- src/SettingsDialog.ui | 10 ++++++++++ src/utils/Utils.cpp | 15 +++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/src/SettingsDialog.ui b/src/SettingsDialog.ui index 554d5e3..2a2e152 100644 --- a/src/SettingsDialog.ui +++ b/src/SettingsDialog.ui @@ -413,6 +413,11 @@ xmrchain.net + + + melo.tools + + moneroblocks.info @@ -423,6 +428,11 @@ blockchair.com + + + blkchairbknpn73cfjhevhla7rkp4ed5gg2knctvv7it4lioy22defid.onion + + diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index eb17016..6bbe958 100644 --- a/src/utils/Utils.cpp +++ b/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: