From: duggavo <108991918+duggavo@users.noreply.github.com> Date: Sun, 18 Sep 2022 10:38:58 +0000 (+0000) Subject: Add MoneroBlock to Utils.cpp X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=add8f2bc994da2fe0424bc8a4513fe0b0e3bd0da;p=gamesguru%2Ffeather.git Add MoneroBlock to Utils.cpp --- diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index b0ebbb83..732bd02e 100644 --- a/src/utils/Utils.cpp +++ b/src/utils/Utils.cpp @@ -438,7 +438,12 @@ QString blockExplorerLink(const QString &blockExplorer, NetworkType::Type nettyp return QString("http://blkchairbknpn73cfjhevhla7rkp4ed5gg2knctvv7it4lioy22defid.onion/monero/transaction/%1").arg(txid); } } - + else if (blockExplorer == "127.0.0.1:31312") { + if (nettype == NetworkType::MAINNET) { + return QString("http://127.0.0.1:31312/tx?id=%1").arg(txid); + } + } + switch (nettype) { case NetworkType::MAINNET: return QString("https://xmrchain.net/tx/%1").arg(txid); @@ -566,4 +571,4 @@ QFont relativeFont(int delta) { font.setPointSize(font.pointSize() + delta); return font; } -} \ No newline at end of file +}