mirror of
https://github.com/wownero/wowlet.git
synced 2026-12-04 05:54:01 +01:00
Wizard: detect local node
This commit is contained in:
+15
-2
@@ -10,12 +10,13 @@
|
||||
#include <QtWidgets/QStyle>
|
||||
#include <QPushButton>
|
||||
|
||||
#include "constants.h"
|
||||
#include "networktype.h"
|
||||
#include "utils.h"
|
||||
#include "utils/ColorScheme.h"
|
||||
#include "utils/config.h"
|
||||
#include "utils/os/tails.h"
|
||||
#include "utils/os/whonix.h"
|
||||
#include "utils/ColorScheme.h"
|
||||
#include "constants.h"
|
||||
|
||||
QByteArray Utils::fileGetContents(const QString &path)
|
||||
{
|
||||
@@ -506,4 +507,16 @@ QString Utils::defaultWalletDir() {
|
||||
#elif defined(Q_OS_WIN)
|
||||
return QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation) + "/Monero/wallets";
|
||||
#endif
|
||||
}
|
||||
|
||||
quint16 Utils::getDefaultRpcPort(NetworkType::Type type) {
|
||||
switch (type) {
|
||||
case NetworkType::Type::MAINNET:
|
||||
return 18081;
|
||||
case NetworkType::Type::TESTNET:
|
||||
return 28081;
|
||||
case NetworkType::Type::STAGENET:
|
||||
return 38081;
|
||||
}
|
||||
return 18081;
|
||||
}
|
||||
@@ -78,6 +78,7 @@ public:
|
||||
static QTextCharFormat addressTextFormat(const SubaddressIndex &index, quint64 amount);
|
||||
static bool isTorsocks();
|
||||
static QString defaultWalletDir();
|
||||
static quint16 getDefaultRpcPort(NetworkType::Type type);
|
||||
|
||||
template<typename QEnum>
|
||||
static QString QtEnumToString (const QEnum value)
|
||||
|
||||
Reference in New Issue
Block a user