Skip to content

Commit fda5fff

Browse files
committed
[GUI] Disable zerocoin minting
1 parent d6149cc commit fda5fff

File tree

3 files changed

+82
-258
lines changed

3 files changed

+82
-258
lines changed

src/qt/forms/privacydialog.ui

Lines changed: 60 additions & 241 deletions
Original file line numberDiff line numberDiff line change
@@ -343,78 +343,31 @@
343343
<item>
344344
<layout class="QHBoxLayout" name="horizontalLayout_4">
345345
<item>
346-
<widget class="QPushButton" name="pushButtonMintzPIV">
347-
<property name="minimumSize">
348-
<size>
349-
<width>131</width>
350-
<height>0</height>
351-
</size>
352-
</property>
353-
<property name="toolTip">
354-
<string>Enter an amount of Piv to convert to zPIV</string>
355-
</property>
356-
<property name="text">
357-
<string>Mint Zerocoin</string>
346+
<spacer name="horizontalSpacer_2">
347+
<property name="orientation">
348+
<enum>Qt::Horizontal</enum>
358349
</property>
359-
</widget>
360-
</item>
361-
<item>
362-
<widget class="QLineEdit" name="labelMintAmountValue">
363-
<property name="minimumSize">
350+
<property name="sizeHint" stdset="0">
364351
<size>
365-
<width>60</width>
366-
<height>0</height>
352+
<width>40</width>
353+
<height>20</height>
367354
</size>
368355
</property>
369-
<property name="text">
370-
<string>0</string>
371-
</property>
372-
<property name="alignment">
373-
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
374-
</property>
375-
</widget>
376-
</item>
377-
<item>
378-
<widget class="QLabel" name="labelzPIV_2">
379-
<property name="text">
380-
<string>zPIV</string>
381-
</property>
382-
</widget>
383-
</item>
384-
<item>
385-
<widget class="QLabel" name="labelzPIVAmountText">
386-
<property name="toolTip">
387-
<string>Available for minting are coins which are confirmed and not locked or Masternode collaterals.</string>
388-
</property>
389-
<property name="text">
390-
<string>Available for Minting:</string>
391-
</property>
392-
<property name="alignment">
393-
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
394-
</property>
395-
</widget>
356+
</spacer>
396357
</item>
397358
<item>
398-
<widget class="QLabel" name="labelzPIVAmountValue">
399-
<property name="font">
400-
<font>
401-
<weight>75</weight>
402-
<bold>true</bold>
403-
</font>
404-
</property>
405-
<property name="toolTip">
406-
<string>Enter an amount of Piv to convert to zPIV</string>
359+
<widget class="QLabel" name="label">
360+
<property name="styleSheet">
361+
<string notr="true">color: red;
362+
font-weight: bold;</string>
407363
</property>
408364
<property name="text">
409-
<string>0.000 000 00 PIV</string>
410-
</property>
411-
<property name="alignment">
412-
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
365+
<string>zPIV minting is DISABLED</string>
413366
</property>
414367
</widget>
415368
</item>
416369
<item>
417-
<spacer name="horizontalSpacer_2">
370+
<spacer name="horizontalSpacer_3">
418371
<property name="orientation">
419372
<enum>Qt::Horizontal</enum>
420373
</property>
@@ -427,214 +380,39 @@
427380
</spacer>
428381
</item>
429382
<item>
430-
<widget class="QPushButton" name="pushButtonSpentReset">
383+
<widget class="QPushButton" name="pushButtonMintReset">
431384
<property name="maximumSize">
432385
<size>
433386
<width>80</width>
434387
<height>16777215</height>
435388
</size>
436389
</property>
437390
<property name="toolTip">
438-
<string>Reset Zerocoin Wallet DB. Deletes transactions that did not make it into the blockchain.</string>
439-
</property>
440-
<property name="text">
441-
<string>Reset</string>
442-
</property>
443-
</widget>
444-
</item>
445-
</layout>
446-
</item>
447-
<item>
448-
<layout class="QHBoxLayout" name="horizontalLayout_5">
449-
<item>
450-
<widget class="QPushButton" name="pushButtonCoinControl">
451-
<property name="minimumSize">
452-
<size>
453-
<width>131</width>
454-
<height>27</height>
455-
</size>
456-
</property>
457-
<property name="maximumSize">
458-
<size>
459-
<width>131</width>
460-
<height>16777215</height>
461-
</size>
462-
</property>
463-
<property name="styleSheet">
464-
<string notr="true"/>
391+
<string>Rescan the complete blockchain for Zerocoin mints and their meta-data.</string>
465392
</property>
466393
<property name="text">
467-
<string>Coin Control...</string>
468-
</property>
469-
<property name="autoDefault">
470-
<bool>false</bool>
394+
<string>ReScan</string>
471395
</property>
472396
</widget>
473397
</item>
474398
<item>
475-
<layout class="QVBoxLayout" name="verticalLayout_4">
476-
<item>
477-
<widget class="QLabel" name="labelCoinControlQuantityText">
478-
<property name="sizePolicy">
479-
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
480-
<horstretch>0</horstretch>
481-
<verstretch>0</verstretch>
482-
</sizepolicy>
483-
</property>
484-
<property name="minimumSize">
485-
<size>
486-
<width>0</width>
487-
<height>0</height>
488-
</size>
489-
</property>
490-
<property name="maximumSize">
491-
<size>
492-
<width>16777215</width>
493-
<height>16777215</height>
494-
</size>
495-
</property>
496-
<property name="font">
497-
<font>
498-
<weight>75</weight>
499-
<bold>true</bold>
500-
</font>
501-
</property>
502-
<property name="text">
503-
<string>Quantity:</string>
504-
</property>
505-
<property name="alignment">
506-
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
507-
</property>
508-
<property name="margin">
509-
<number>0</number>
510-
</property>
511-
</widget>
512-
</item>
513-
<item>
514-
<widget class="QLabel" name="labelCoinControlAmountText">
515-
<property name="enabled">
516-
<bool>true</bool>
517-
</property>
518-
<property name="font">
519-
<font>
520-
<weight>75</weight>
521-
<bold>true</bold>
522-
</font>
523-
</property>
524-
<property name="text">
525-
<string>Amount:</string>
526-
</property>
527-
<property name="margin">
528-
<number>0</number>
529-
</property>
530-
</widget>
531-
</item>
532-
</layout>
533-
</item>
534-
<item>
535-
<layout class="QVBoxLayout" name="verticalLayout_6">
536-
<item>
537-
<widget class="QLabel" name="labelCoinControlQuantity">
538-
<property name="sizePolicy">
539-
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
540-
<horstretch>0</horstretch>
541-
<verstretch>0</verstretch>
542-
</sizepolicy>
543-
</property>
544-
<property name="minimumSize">
545-
<size>
546-
<width>0</width>
547-
<height>0</height>
548-
</size>
549-
</property>
550-
<property name="maximumSize">
551-
<size>
552-
<width>16777215</width>
553-
<height>16777215</height>
554-
</size>
555-
</property>
556-
<property name="cursor">
557-
<cursorShape>IBeamCursor</cursorShape>
558-
</property>
559-
<property name="contextMenuPolicy">
560-
<enum>Qt::ActionsContextMenu</enum>
561-
</property>
562-
<property name="text">
563-
<string notr="true">0</string>
564-
</property>
565-
<property name="margin">
566-
<number>0</number>
567-
</property>
568-
<property name="textInteractionFlags">
569-
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
570-
</property>
571-
</widget>
572-
</item>
573-
<item>
574-
<widget class="QLabel" name="labelCoinControlAmount">
575-
<property name="enabled">
576-
<bool>true</bool>
577-
</property>
578-
<property name="cursor">
579-
<cursorShape>IBeamCursor</cursorShape>
580-
</property>
581-
<property name="contextMenuPolicy">
582-
<enum>Qt::ActionsContextMenu</enum>
583-
</property>
584-
<property name="text">
585-
<string notr="true">0.00 PIV</string>
586-
</property>
587-
<property name="textInteractionFlags">
588-
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
589-
</property>
590-
</widget>
591-
</item>
592-
</layout>
593-
</item>
594-
<item>
595-
<spacer name="horizontalSpacer_3">
596-
<property name="orientation">
597-
<enum>Qt::Horizontal</enum>
598-
</property>
599-
<property name="sizeHint" stdset="0">
600-
<size>
601-
<width>40</width>
602-
<height>20</height>
603-
</size>
604-
</property>
605-
</spacer>
606-
</item>
607-
<item>
608-
<widget class="QPushButton" name="pushButtonMintReset">
399+
<widget class="QPushButton" name="pushButtonSpentReset">
609400
<property name="maximumSize">
610401
<size>
611402
<width>80</width>
612403
<height>16777215</height>
613404
</size>
614405
</property>
615406
<property name="toolTip">
616-
<string>Rescan the complete blockchain for Zerocoin mints and their meta-data.</string>
407+
<string>Reset Zerocoin Wallet DB. Deletes transactions that did not make it into the blockchain.</string>
617408
</property>
618409
<property name="text">
619-
<string>ReScan</string>
410+
<string>Reset</string>
620411
</property>
621412
</widget>
622413
</item>
623414
</layout>
624415
</item>
625-
<item>
626-
<spacer name="horizontalSpacer_18">
627-
<property name="orientation">
628-
<enum>Qt::Horizontal</enum>
629-
</property>
630-
<property name="sizeHint" stdset="0">
631-
<size>
632-
<width>40</width>
633-
<height>20</height>
634-
</size>
635-
</property>
636-
</spacer>
637-
</item>
638416
<item>
639417
<widget class="QPlainTextEdit" name="TEMintStatus">
640418
<property name="font">
@@ -693,6 +471,47 @@
693471
</property>
694472
</widget>
695473
</item>
474+
<item>
475+
<layout class="QHBoxLayout" name="horizontalLayout_7">
476+
<item>
477+
<spacer name="horizontalSpacer_18">
478+
<property name="orientation">
479+
<enum>Qt::Horizontal</enum>
480+
</property>
481+
<property name="sizeHint" stdset="0">
482+
<size>
483+
<width>40</width>
484+
<height>20</height>
485+
</size>
486+
</property>
487+
</spacer>
488+
</item>
489+
<item>
490+
<widget class="QLabel" name="label_2">
491+
<property name="styleSheet">
492+
<string notr="true">color: red;
493+
font-weight: bold;</string>
494+
</property>
495+
<property name="text">
496+
<string>zPIV spending is NOT private (links back to the mint transaction)</string>
497+
</property>
498+
</widget>
499+
</item>
500+
<item>
501+
<spacer name="horizontalSpacer_30">
502+
<property name="orientation">
503+
<enum>Qt::Horizontal</enum>
504+
</property>
505+
<property name="sizeHint" stdset="0">
506+
<size>
507+
<width>40</width>
508+
<height>20</height>
509+
</size>
510+
</property>
511+
</spacer>
512+
</item>
513+
</layout>
514+
</item>
696515
<item>
697516
<layout class="QHBoxLayout" name="horizontalLayout_24">
698517
<property name="leftMargin">

0 commit comments

Comments
 (0)