From cb6f2873a968fa3dbed089475f0082012e29f8c2 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Mon, 2 Nov 2020 10:11:37 +0100 Subject: [PATCH] Utils: add blockchair.com block explorer --- src/settings.ui | 5 +++++ src/utils/utils.cpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/settings.ui b/src/settings.ui index 9192029..e4c7d02 100644 --- a/src/settings.ui +++ b/src/settings.ui @@ -175,6 +175,11 @@ moneroblocks.info + + + blockchair.com + + diff --git a/src/utils/utils.cpp b/src/utils/utils.cpp index 098f0f2..0a0317f 100644 --- a/src/utils/utils.cpp +++ b/src/utils/utils.cpp @@ -382,6 +382,11 @@ QString Utils::blockExplorerLink(const QString &blockExplorer, NetworkType::Type return QString("https://moneroblocks.info/tx/%1").arg(txid); } } + else if (blockExplorer == "blockchair.com") { + if (nettype == NetworkType::MAINNET) { + return QString("https://blockchair.com/monero/transaction/%1").arg(txid); + } + } switch (nettype) { case NetworkType::MAINNET: