mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
fixed Darksend settings
This commit is contained in:
parent
7604ace9be
commit
039023d9c9
@ -158,7 +158,52 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="toolTip">
|
||||
<string notr="true"><html><head/><body><p>This amount acts as a threshold to turn off Darksend once it's reached. </p></body></html></string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="accessibleName">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="accessibleDescription">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Amount of Darkcoin to keep anonymized</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="anonymizeDarkcoin">
|
||||
<property name="minimum">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>2000</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<number>10</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>1000</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
|
||||
|
||||
|
||||
</widget>
|
||||
<widget class="QWidget" name="tabWallet">
|
||||
<attribute name="title">
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include "guiutil.h"
|
||||
#include "monitoreddatamapper.h"
|
||||
#include "optionsmodel.h"
|
||||
#include "darksend.h"
|
||||
|
||||
#include "main.h" // for CTransaction::nMinTxFee and MAX_SCRIPTCHECK_THREADS
|
||||
#include "netbase.h"
|
||||
@ -188,6 +189,12 @@ void OptionsDialog::setMapper()
|
||||
mapper->addMapping(ui->unit, OptionsModel::DisplayUnit);
|
||||
mapper->addMapping(ui->displayAddresses, OptionsModel::DisplayAddresses);
|
||||
mapper->addMapping(ui->thirdPartyTxUrls, OptionsModel::ThirdPartyTxUrls);
|
||||
|
||||
|
||||
/* Darksend Rounds */
|
||||
mapper->addMapping(ui->darksendRounds, OptionsModel::DarksendRounds);
|
||||
mapper->addMapping(ui->anonymizeDarkcoin, OptionsModel::AnonymizeDarkcoinAmount);
|
||||
|
||||
}
|
||||
|
||||
void OptionsDialog::enableOkButton()
|
||||
@ -228,6 +235,7 @@ void OptionsDialog::on_resetButton_clicked()
|
||||
void OptionsDialog::on_okButton_clicked()
|
||||
{
|
||||
mapper->submit();
|
||||
darkSendPool.cachedNumBlocks = 0;
|
||||
accept();
|
||||
}
|
||||
|
||||
|
@ -72,6 +72,15 @@ void OptionsModel::Init()
|
||||
settings.setValue("fCoinControlFeatures", false);
|
||||
fCoinControlFeatures = settings.value("fCoinControlFeatures", false).toBool();
|
||||
|
||||
if (!settings.contains("nDarksendRounds"))
|
||||
settings.setValue("nDarksendRounds", 2);
|
||||
|
||||
if (!settings.contains("nAnonymizeDarkcoinAmount"))
|
||||
settings.setValue("nAnonymizeDarkcoinAmount", 1000);
|
||||
|
||||
nDarksendRounds = settings.value("nDarksendRounds").toLongLong();
|
||||
nAnonymizeDarkcoinAmount = settings.value("nAnonymizeDarkcoinAmount").toLongLong();
|
||||
|
||||
// These are shared with the core or have a command-line parameter
|
||||
// and we want command-line parameters to overwrite the GUI settings.
|
||||
//
|
||||
|
@ -42,9 +42,9 @@ public:
|
||||
ThreadsScriptVerif, // int
|
||||
DatabaseCache, // int
|
||||
SpendZeroConfChange, // bool
|
||||
OptionIDRowCount,
|
||||
DarksendRounds, // int
|
||||
AnonymizeDarkcoinAmount, //int
|
||||
OptionIDRowCount,
|
||||
};
|
||||
|
||||
void Init();
|
||||
|
@ -10,7 +10,7 @@
|
||||
// Name of client reported in the 'version' message. Report the same name
|
||||
// for both darkcoind and darkcoin-qt, to make it harder for attackers to
|
||||
// target servers or GUI users specifically.
|
||||
const std::string CLIENT_NAME("Duffield");
|
||||
const std::string CLIENT_NAME("Darkcoin Core");
|
||||
|
||||
// Client version number
|
||||
#define CLIENT_VERSION_SUFFIX "-beta"
|
||||
|
Loading…
Reference in New Issue
Block a user