From 109a6e13b7e35144f0404c0e4c5de536e2e10cb8 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Sat, 22 Jun 2019 23:55:48 -0700 Subject: [PATCH] Speed up refresh rates --- src/settings.cpp | 4 ++-- src/settings.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/settings.cpp b/src/settings.cpp index b45662d..27499a7 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -58,7 +58,7 @@ bool Settings::isSaplingAddress(QString addr) { return false; return ( isTestnet() && addr.startsWith("ztestsapling")) || - (!isTestnet() && addr.startsWith("zs")); + (!isTestnet() && addr.startsWith("zs1")); } bool Settings::isSproutAddress(QString addr) { @@ -273,7 +273,7 @@ bool Settings::isValidAddress(QString addr) { QRegExp zsexp("^zs1[a-z0-9]{75}$", Qt::CaseInsensitive); QRegExp ztsexp("^ztestsapling[a-z0-9]{76}", Qt::CaseInsensitive); QRegExp texp("^R[a-z0-9]{33}$", Qt::CaseInsensitive); - qDebug() << "isValidAddress(" << addr << ")"; + //qDebug() << "isValidAddress(" << addr << ")"; return texp.exactMatch(addr) || ztsexp.exactMatch(addr) || zsexp.exactMatch(addr); } diff --git a/src/settings.h b/src/settings.h index ee3a053..e72434e 100644 --- a/src/settings.h +++ b/src/settings.h @@ -104,9 +104,9 @@ public: static const QString labelRegExp; - static const int updateSpeed = 20 * 1000; // 20 sec - static const int quickUpdateSpeed = 5 * 1000; // 5 sec - static const int priceRefreshSpeed = 60 * 60 * 1000; // 1 hr + static const int updateSpeed = 10 * 1000; // 10 sec + static const int quickUpdateSpeed = 3 * 1000; // 3 sec + static const int priceRefreshSpeed = 15 * 60 * 1000; // 15 mins private: // This class can only be accessed through Settings::getInstance() @@ -128,4 +128,4 @@ private: double zecPrice = 0.0; }; -#endif // SETTINGS_H \ No newline at end of file +#endif // SETTINGS_H