aboutsummaryrefslogtreecommitdiff
path: root/src/qt/clientmodel.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2013-12-18 09:45:36 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2013-12-20 11:18:50 +0100
commit2ea980a77cc28374a55aa1fdce953f9b570e0857 (patch)
treed904a6f5126430fe329509904b2274b3c9dfa74f /src/qt/clientmodel.cpp
parent57fdd68aaccbc845e2efca3a7b535832132fcf43 (diff)
downloadbitcoin-2ea980a77cc28374a55aa1fdce953f9b570e0857.tar.xz
qt: Treat regtest as testnet
No need to do anything special in the GUI for regtest mode, but do treat it at testnet not mainnet to prevent confusion.
Diffstat (limited to 'src/qt/clientmodel.cpp')
-rw-r--r--src/qt/clientmodel.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp
index c64e411bca..f273b9ea46 100644
--- a/src/qt/clientmodel.cpp
+++ b/src/qt/clientmodel.cpp
@@ -123,9 +123,12 @@ void ClientModel::updateAlert(const QString &hash, int status)
emit alertsChanged(getStatusBarWarnings());
}
-bool ClientModel::isTestNet() const
+QString ClientModel::getNetworkName() const
{
- return TestNet();
+ QString netname(QString::fromStdString(Params().DataDir()));
+ if(netname.isEmpty())
+ netname = "main";
+ return netname;
}
bool ClientModel::inInitialBlockDownload() const