Skip to content

Commit

Permalink
[GUI] Disable zerocoin minting
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra committed Jun 5, 2019
1 parent d6149cc commit fda5fff
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 258 deletions.
301 changes: 60 additions & 241 deletions src/qt/forms/privacydialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -343,78 +343,31 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QPushButton" name="pushButtonMintzPIV">
<property name="minimumSize">
<size>
<width>131</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Enter an amount of Piv to convert to zPIV</string>
</property>
<property name="text">
<string>Mint Zerocoin</string>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="labelMintAmountValue">
<property name="minimumSize">
<property name="sizeHint" stdset="0">
<size>
<width>60</width>
<height>0</height>
<width>40</width>
<height>20</height>
</size>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelzPIV_2">
<property name="text">
<string>zPIV</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelzPIVAmountText">
<property name="toolTip">
<string>Available for minting are coins which are confirmed and not locked or Masternode collaterals.</string>
</property>
<property name="text">
<string>Available for Minting:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</spacer>
</item>
<item>
<widget class="QLabel" name="labelzPIVAmountValue">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="toolTip">
<string>Enter an amount of Piv to convert to zPIV</string>
<widget class="QLabel" name="label">
<property name="styleSheet">
<string notr="true">color: red;
font-weight: bold;</string>
</property>
<property name="text">
<string>0.000 000 00 PIV</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
<string>zPIV minting is DISABLED</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
Expand All @@ -427,214 +380,39 @@
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButtonSpentReset">
<widget class="QPushButton" name="pushButtonMintReset">
<property name="maximumSize">
<size>
<width>80</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Reset Zerocoin Wallet DB. Deletes transactions that did not make it into the blockchain.</string>
</property>
<property name="text">
<string>Reset</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QPushButton" name="pushButtonCoinControl">
<property name="minimumSize">
<size>
<width>131</width>
<height>27</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>131</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
<string>Rescan the complete blockchain for Zerocoin mints and their meta-data.</string>
</property>
<property name="text">
<string>Coin Control...</string>
</property>
<property name="autoDefault">
<bool>false</bool>
<string>ReScan</string>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QLabel" name="labelCoinControlQuantityText">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Quantity:</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="margin">
<number>0</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelCoinControlAmountText">
<property name="enabled">
<bool>true</bool>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Amount:</string>
</property>
<property name="margin">
<number>0</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<widget class="QLabel" name="labelCoinControlQuantity">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
<property name="contextMenuPolicy">
<enum>Qt::ActionsContextMenu</enum>
</property>
<property name="text">
<string notr="true">0</string>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="labelCoinControlAmount">
<property name="enabled">
<bool>true</bool>
</property>
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
<property name="contextMenuPolicy">
<enum>Qt::ActionsContextMenu</enum>
</property>
<property name="text">
<string notr="true">0.00 PIV</string>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButtonMintReset">
<widget class="QPushButton" name="pushButtonSpentReset">
<property name="maximumSize">
<size>
<width>80</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Rescan the complete blockchain for Zerocoin mints and their meta-data.</string>
<string>Reset Zerocoin Wallet DB. Deletes transactions that did not make it into the blockchain.</string>
</property>
<property name="text">
<string>ReScan</string>
<string>Reset</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer_18">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPlainTextEdit" name="TEMintStatus">
<property name="font">
Expand Down Expand Up @@ -693,6 +471,47 @@
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<spacer name="horizontalSpacer_18">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_2">
<property name="styleSheet">
<string notr="true">color: red;
font-weight: bold;</string>
</property>
<property name="text">
<string>zPIV spending is NOT private (links back to the mint transaction)</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_30">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_24">
<property name="leftMargin">
Expand Down
Loading

0 comments on commit fda5fff

Please sign in to comment.