Show Sprout security warning
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>1</number>
|
||||
<number>2</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab">
|
||||
<attribute name="title">
|
||||
@@ -730,6 +730,25 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lblSproutWarning">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">color: red;</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p>You should suspend trust in the receipt of funds to Sprout z-addresses until you upgrade to zcash v2.0.4. See <a href="https://z.cash/support/security/announcements/security-announcement-2019-03-19/"><span style=" text-decoration: underline; color:#0000ff;">Security Announcement</span></a>.</p></body></html></string>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>Qt::RichText</enum>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="textInteractionFlags">
|
||||
<set>Qt::TextBrowserInteraction</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -1029,7 +1048,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>968</width>
|
||||
<height>19</height>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFile">
|
||||
|
||||
@@ -551,6 +551,7 @@ void RPC::getInfoThenRefresh(bool force) {
|
||||
static int lastBlock = 0;
|
||||
int curBlock = reply["blocks"].get<json::number_integer_t>();
|
||||
int version = reply["version"].get<json::number_integer_t>();
|
||||
Settings::getInstance()->setZcashdVersion(version);
|
||||
|
||||
if ( force || (curBlock != lastBlock) ) {
|
||||
// Something changed, so refresh everything.
|
||||
@@ -646,7 +647,7 @@ void RPC::getInfoThenRefresh(bool force) {
|
||||
else {
|
||||
tooltip = QObject::tr("zcashd has no peer connections");
|
||||
}
|
||||
tooltip = tooltip % "(v " % QString::number(version) % ")";
|
||||
tooltip = tooltip % "(v " % QString::number(Settings::getInstance()->getZcashdVersion()) % ")";
|
||||
|
||||
if (!zecPrice.isEmpty()) {
|
||||
tooltip = "1 ZEC = " % zecPrice % "\n" % tooltip;
|
||||
|
||||
@@ -82,6 +82,14 @@ bool Settings::isTAddress(QString addr) {
|
||||
return addr.startsWith("t");
|
||||
}
|
||||
|
||||
int Settings::getZcashdVersion() {
|
||||
return _zcashdVersion;
|
||||
}
|
||||
|
||||
void Settings::setZcashdVersion(int version) {
|
||||
_zcashdVersion = version;
|
||||
}
|
||||
|
||||
bool Settings::isSyncing() {
|
||||
return _isSyncing;
|
||||
}
|
||||
|
||||
@@ -31,6 +31,9 @@ public:
|
||||
bool isSyncing();
|
||||
void setSyncing(bool syncing);
|
||||
|
||||
int getZcashdVersion();
|
||||
void setZcashdVersion(int version);
|
||||
|
||||
void setUseEmbedded(bool r) { _useEmbedded = r; }
|
||||
bool useEmbedded() { return _useEmbedded; }
|
||||
|
||||
@@ -105,6 +108,7 @@ private:
|
||||
bool _isTestnet = false;
|
||||
bool _isSyncing = false;
|
||||
int _blockNumber = 0;
|
||||
int _zcashdVersion = 0;
|
||||
bool _useEmbedded = false;
|
||||
bool _headless = false;
|
||||
int _peerConnections = 0;
|
||||
|
||||
Reference in New Issue
Block a user