diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 32140ef..c155976 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1110,8 +1110,11 @@ void MainWindow::suchDonate(const QString address) {
}
void MainWindow::onViewOnBlockExplorer(const QString &txid) {
- QString blockExplorerLink = Utils::blockExplorerLink(config()->get(Config::blockExplorer).toString(), m_ctx->networkType, txid);
- Utils::externalLinkWarning(this, blockExplorerLink);
+ QString blockExplorerLink = Utils::blockExplorerLink(txid);
+ if(!blockExplorerLink.isEmpty())
+ Utils::externalLinkWarning(this, blockExplorerLink);
+ else
+ QMessageBox::warning(this, "Error", "Could not generate block explorer URL");
}
void MainWindow::onResendTransaction(const QString &txid) {
diff --git a/src/settings.ui b/src/settings.ui
index 79f34b2..f8bc787 100644
--- a/src/settings.ui
+++ b/src/settings.ui
@@ -146,7 +146,7 @@
-
- blockchair.com
+ kryfi.com
diff --git a/src/utils/config.cpp b/src/utils/config.cpp
index 77cbe17..a73fd88 100644
--- a/src/utils/config.cpp
+++ b/src/utils/config.cpp
@@ -28,7 +28,7 @@ static const QHash configStrings = {
{Config::openVRSkin,{QS("openVRSkin"), "default"}},
{Config::openVRStreamerMode,{QS("openVRStreamerMode"), false}},
{Config::preferredFiatCurrency,{QS("preferredFiatCurrency"), "USD"}},
- {Config::blockExplorer,{QS("blockExplorer"), "explore.wownero.com"}},
+ {Config::blockExplorer,{QS("blockExplorer"), "kryfi.com"}},
{Config::walletDirectory,{QS("walletDirectory"), ""}},
{Config::autoOpenWalletPath,{QS("autoOpenWalletPath"), ""}},
{Config::walletPath,{QS("walletPath"), ""}},
diff --git a/src/utils/utils.cpp b/src/utils/utils.cpp
index 80adea7..2fdfce3 100644
--- a/src/utils/utils.cpp
+++ b/src/utils/utils.cpp
@@ -238,8 +238,13 @@ QString Utils::copyFromClipboard() {
return clipboard->text();
}
-QString Utils::blockExplorerLink(const QString &blockExplorer, NetworkType::Type nettype, const QString &txid) {
- return QString("https://explore.wownero.com/tx/%1").arg(txid);
+QString Utils::blockExplorerLink(const QString &txid) {
+ auto explorer = config()->get(Config::blockExplorer).toString();
+ if(explorer.startsWith("kryfi.com")) {
+ return QString("https://kryfi.com/explorer/wownero/tx/%1").arg(txid);
+ } else {
+ return QString("https://explore.wownero.com/tx/%1").arg(txid);
+ }
}
QStandardItem *Utils::qStandardItem(const QString& text) {
diff --git a/src/utils/utils.h b/src/utils/utils.h
index a156213..d2a7422 100644
--- a/src/utils/utils.h
+++ b/src/utils/utils.h
@@ -64,7 +64,7 @@ public:
static QStandardItem *qStandardItem(const QString &text, QFont &font);
static void copyToClipboard(const QString &string);
static QString copyFromClipboard();
- static QString blockExplorerLink(const QString &blockExplorer, NetworkType::Type nettype, const QString &txid);
+ static QString blockExplorerLink(const QString &txid);
static QString getUnixAccountName();
static QString xdgDesktopEntry();
static bool xdgDesktopEntryWrite(const QString &path);