Skip to content

Commit 6c62b00

Browse files
committed
This should work
1 parent a376d21 commit 6c62b00

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/settings.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ void Settings::setAllowFetchPrices(bool allow) {
3434
Explorer Settings::getExplorer() {
3535
// Load from the QT Settings.
3636
QSettings s;
37+
//TODO: make it easy for people to use other explorers like komodod.com
38+
QString explorer = "https://explorer.myhush.org";
3739

38-
auto txExplorerUrl = s.value("explorer/txExplorerUrl").toString();
39-
auto addressExplorerUrl = s.value("explorer/addressExplorerUrl").toString();
40+
auto txExplorerUrl = s.value("explorer/txExplorerUrl", explorer + "/tx/").toString();
41+
auto addressExplorerUrl = s.value("explorer/addressExplorerUrl", explorer + "/address/").toString();
4042
auto testnetTxExplorerUrl = s.value("explorer/testnetTxExplorerUrl").toString();
4143
auto testnetAddressExplorerUrl = s.value("explorer/testnetAddressExplorerUrl").toString();
4244

0 commit comments

Comments
 (0)