2014-12-05 10:09:38 +01:00
// Copyright (c) 2011-2014 The Bitcoin developers
2014-12-11 16:58:38 +01:00
// Copyright (c) 2014 The Darkcoin developers
2013-11-04 16:20:43 +01:00
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
2011-07-05 22:09:39 +02:00
# include "overviewpage.h"
# include "ui_overviewpage.h"
2011-07-25 21:35:45 +02:00
# include "bitcoinunits.h"
2013-04-13 07:13:08 +02:00
# include "clientmodel.h"
2014-12-23 03:28:52 +01:00
# include "darksend.h"
# include "darksendconfig.h"
2013-04-13 07:13:08 +02:00
# include "guiconstants.h"
# include "guiutil.h"
2011-07-29 14:36:35 +02:00
# include "optionsmodel.h"
2011-08-03 20:52:18 +02:00
# include "transactionfilterproxy.h"
2013-04-13 07:13:08 +02:00
# include "transactiontablemodel.h"
# include "walletmodel.h"
2014-12-23 03:28:52 +01:00
# include "init.h"
2011-07-29 14:36:35 +02:00
2011-08-03 21:28:11 +02:00
# include <QAbstractItemDelegate>
2011-08-03 20:52:18 +02:00
# include <QPainter>
2014-12-23 03:28:52 +01:00
# include <QTimer>
2011-08-03 20:52:18 +02:00
# define DECORATION_SIZE 64
2011-08-03 21:04:15 +02:00
# define NUM_ITEMS 3
2011-08-03 21:28:11 +02:00
class TxViewDelegate : public QAbstractItemDelegate
2011-08-03 20:52:18 +02:00
{
2011-09-19 12:40:23 +02:00
Q_OBJECT
2011-08-03 20:52:18 +02:00
public :
2014-12-05 10:09:38 +01:00
TxViewDelegate ( ) : QAbstractItemDelegate ( ) , unit ( BitcoinUnits : : DRK )
2011-08-03 20:52:18 +02:00
{
}
inline void paint ( QPainter * painter , const QStyleOptionViewItem & option ,
const QModelIndex & index ) const
{
painter - > save ( ) ;
QIcon icon = qvariant_cast < QIcon > ( index . data ( Qt : : DecorationRole ) ) ;
QRect mainRect = option . rect ;
QRect decorationRect ( mainRect . topLeft ( ) , QSize ( DECORATION_SIZE , DECORATION_SIZE ) ) ;
int xspace = DECORATION_SIZE + 8 ;
int ypad = 6 ;
int halfheight = ( mainRect . height ( ) - 2 * ypad ) / 2 ;
QRect amountRect ( mainRect . left ( ) + xspace , mainRect . top ( ) + ypad , mainRect . width ( ) - xspace , halfheight ) ;
QRect addressRect ( mainRect . left ( ) + xspace , mainRect . top ( ) + ypad + halfheight , mainRect . width ( ) - xspace , halfheight ) ;
icon . paint ( painter , decorationRect ) ;
QDateTime date = index . data ( TransactionTableModel : : DateRole ) . toDateTime ( ) ;
QString address = index . data ( Qt : : DisplayRole ) . toString ( ) ;
qint64 amount = index . data ( TransactionTableModel : : AmountRole ) . toLongLong ( ) ;
bool confirmed = index . data ( TransactionTableModel : : ConfirmedRole ) . toBool ( ) ;
QVariant value = index . data ( Qt : : ForegroundRole ) ;
QColor foreground = option . palette . color ( QPalette : : Text ) ;
2013-04-14 19:50:15 +02:00
if ( value . canConvert < QBrush > ( ) )
2011-08-03 20:52:18 +02:00
{
2013-04-14 19:50:15 +02:00
QBrush brush = qvariant_cast < QBrush > ( value ) ;
foreground = brush . color ( ) ;
2011-08-03 20:52:18 +02:00
}
painter - > setPen ( foreground ) ;
painter - > drawText ( addressRect , Qt : : AlignLeft | Qt : : AlignVCenter , address ) ;
if ( amount < 0 )
{
foreground = COLOR_NEGATIVE ;
}
2011-08-03 21:04:15 +02:00
else if ( ! confirmed )
{
foreground = COLOR_UNCONFIRMED ;
}
2011-08-03 20:52:18 +02:00
else
{
foreground = option . palette . color ( QPalette : : Text ) ;
}
painter - > setPen ( foreground ) ;
QString amountText = BitcoinUnits : : formatWithUnit ( unit , amount , true ) ;
if ( ! confirmed )
{
amountText = QString ( " [ " ) + amountText + QString ( " ] " ) ;
}
painter - > drawText ( amountRect , Qt : : AlignRight | Qt : : AlignVCenter , amountText ) ;
painter - > setPen ( option . palette . color ( QPalette : : Text ) ) ;
2011-08-08 17:38:17 +02:00
painter - > drawText ( amountRect , Qt : : AlignLeft | Qt : : AlignVCenter , GUIUtil : : dateTimeStr ( date ) ) ;
2011-08-03 20:52:18 +02:00
painter - > restore ( ) ;
}
2011-08-03 21:28:11 +02:00
inline QSize sizeHint ( const QStyleOptionViewItem & option , const QModelIndex & index ) const
{
return QSize ( DECORATION_SIZE , DECORATION_SIZE ) ;
}
2011-08-03 20:52:18 +02:00
int unit ;
} ;
2011-09-19 12:40:23 +02:00
# include "overviewpage.moc"
2011-07-05 22:09:39 +02:00
OverviewPage : : OverviewPage ( QWidget * parent ) :
QWidget ( parent ) ,
2011-07-29 14:36:35 +02:00
ui ( new Ui : : OverviewPage ) ,
2012-10-24 21:47:07 +02:00
clientModel ( 0 ) ,
walletModel ( 0 ) ,
2011-07-29 14:36:35 +02:00
currentBalance ( - 1 ) ,
2011-08-03 20:52:18 +02:00
currentUnconfirmedBalance ( - 1 ) ,
2012-02-14 12:08:00 +01:00
currentImmatureBalance ( - 1 ) ,
txdelegate ( new TxViewDelegate ( ) ) ,
filter ( 0 )
2011-07-05 22:09:39 +02:00
{
ui - > setupUi ( this ) ;
2011-08-03 20:52:18 +02:00
// Recent transactions
ui - > listTransactions - > setItemDelegate ( txdelegate ) ;
ui - > listTransactions - > setIconSize ( QSize ( DECORATION_SIZE , DECORATION_SIZE ) ) ;
2011-08-03 21:04:15 +02:00
ui - > listTransactions - > setMinimumHeight ( NUM_ITEMS * ( DECORATION_SIZE + 2 ) ) ;
2011-10-07 13:21:45 +02:00
ui - > listTransactions - > setAttribute ( Qt : : WA_MacShowFocusRect , false ) ;
2011-08-04 04:41:01 +02:00
2012-05-12 13:19:44 +02:00
connect ( ui - > listTransactions , SIGNAL ( clicked ( QModelIndex ) ) , this , SLOT ( handleTransactionClicked ( QModelIndex ) ) ) ;
2012-05-15 16:57:59 +02:00
2014-12-23 03:28:52 +01:00
timer = new QTimer ( this ) ;
connect ( timer , SIGNAL ( timeout ( ) ) , this , SLOT ( darkSendStatus ( ) ) ) ;
timer - > start ( 333 ) ;
2012-05-15 16:57:59 +02:00
// init "out of sync" warning labels
ui - > labelWalletStatus - > setText ( " ( " + tr ( " out of sync " ) + " ) " ) ;
ui - > labelTransactionsStatus - > setText ( " ( " + tr ( " out of sync " ) + " ) " ) ;
2014-12-23 03:28:52 +01:00
showingDarkSendMessage = 0 ;
darksendActionCheck = 0 ;
if ( fMasterNode ) {
ui - > toggleDarksend - > setText ( " (Disabled) " ) ;
ui - > toggleDarksend - > setEnabled ( false ) ;
} else if ( ! fEnableDarksend ) {
ui - > toggleDarksend - > setText ( " Start Darksend Mixing " ) ;
} else {
ui - > toggleDarksend - > setText ( " Stop Darksend Mixing " ) ;
}
2012-05-15 16:57:59 +02:00
// start with displaying the "out of sync" warnings
showOutOfSyncWarning ( true ) ;
2012-05-12 13:19:44 +02:00
}
void OverviewPage : : handleTransactionClicked ( const QModelIndex & index )
{
if ( filter )
emit transactionClicked ( filter - > mapToSource ( index ) ) ;
2011-07-05 22:09:39 +02:00
}
OverviewPage : : ~ OverviewPage ( )
{
delete ui ;
}
2014-12-23 03:28:52 +01:00
void OverviewPage : : setBalance ( qint64 balance , qint64 unconfirmedBalance , qint64 immatureBalance , qint64 anonymizedBalance )
2011-07-05 22:09:39 +02:00
{
2012-10-24 21:47:07 +02:00
int unit = walletModel - > getOptionsModel ( ) - > getDisplayUnit ( ) ;
2011-07-29 14:36:35 +02:00
currentBalance = balance ;
currentUnconfirmedBalance = unconfirmedBalance ;
2012-02-14 12:08:00 +01:00
currentImmatureBalance = immatureBalance ;
2014-12-23 03:28:52 +01:00
currentAnonymizedBalance = anonymizedBalance ;
2011-07-29 14:36:35 +02:00
ui - > labelBalance - > setText ( BitcoinUnits : : formatWithUnit ( unit , balance ) ) ;
ui - > labelUnconfirmed - > setText ( BitcoinUnits : : formatWithUnit ( unit , unconfirmedBalance ) ) ;
2012-02-14 12:08:00 +01:00
ui - > labelImmature - > setText ( BitcoinUnits : : formatWithUnit ( unit , immatureBalance ) ) ;
2014-12-23 03:28:52 +01:00
ui - > labelAnonymized - > setText ( BitcoinUnits : : formatWithUnit ( unit , anonymizedBalance ) ) ;
2013-06-07 11:08:03 +02:00
ui - > labelTotal - > setText ( BitcoinUnits : : formatWithUnit ( unit , balance + unconfirmedBalance + immatureBalance ) ) ;
2012-02-14 12:08:00 +01:00
// only show immature (newly mined) balance if it's non-zero, so as not to complicate things
// for the non-mining users
bool showImmature = immatureBalance ! = 0 ;
ui - > labelImmature - > setVisible ( showImmature ) ;
ui - > labelImmatureText - > setVisible ( showImmature ) ;
2011-07-05 22:09:39 +02:00
}
2011-07-07 10:59:00 +02:00
2012-10-24 21:47:07 +02:00
void OverviewPage : : setClientModel ( ClientModel * model )
2011-07-11 20:42:10 +02:00
{
2012-10-24 21:47:07 +02:00
this - > clientModel = model ;
if ( model )
{
// Show warning if this is a prerelease version
connect ( model , SIGNAL ( alertsChanged ( QString ) ) , this , SLOT ( updateAlerts ( QString ) ) ) ;
updateAlerts ( model - > getStatusBarWarnings ( ) ) ;
}
}
void OverviewPage : : setWalletModel ( WalletModel * model )
{
this - > walletModel = model ;
2012-06-09 15:41:21 +02:00
if ( model & & model - > getOptionsModel ( ) )
2011-11-08 21:18:36 +01:00
{
// Set up transaction list
2012-05-12 13:19:44 +02:00
filter = new TransactionFilterProxy ( ) ;
2011-11-08 21:18:36 +01:00
filter - > setSourceModel ( model - > getTransactionTableModel ( ) ) ;
filter - > setLimit ( NUM_ITEMS ) ;
filter - > setDynamicSortFilter ( true ) ;
filter - > setSortRole ( Qt : : EditRole ) ;
2014-02-14 07:59:07 +01:00
filter - > setShowInactive ( false ) ;
2011-11-08 21:18:36 +01:00
filter - > sort ( TransactionTableModel : : Status , Qt : : DescendingOrder ) ;
2011-07-11 20:42:10 +02:00
2011-11-08 21:18:36 +01:00
ui - > listTransactions - > setModel ( filter ) ;
ui - > listTransactions - > setModelColumn ( TransactionTableModel : : ToAddress ) ;
2011-08-03 20:52:18 +02:00
2011-11-08 21:18:36 +01:00
// Keep up to date with wallet
2014-12-23 03:28:52 +01:00
setBalance ( model - > getBalance ( ) , model - > getUnconfirmedBalance ( ) , model - > getImmatureBalance ( ) , model - > getAnonymizedBalance ( ) ) ;
connect ( model , SIGNAL ( balanceChanged ( qint64 , qint64 , qint64 , qint64 ) ) , this , SLOT ( setBalance ( qint64 , qint64 , qint64 , qint64 ) ) ) ;
2011-07-11 20:42:10 +02:00
2012-06-09 15:41:21 +02:00
connect ( model - > getOptionsModel ( ) , SIGNAL ( displayUnitChanged ( int ) ) , this , SLOT ( updateDisplayUnit ( ) ) ) ;
2014-12-23 03:28:52 +01:00
connect ( ui - > runAutoDenom , SIGNAL ( clicked ( ) ) , this , SLOT ( runDoAutomaticDenomination ( ) ) ) ;
connect ( ui - > toggleDarksend , SIGNAL ( clicked ( ) ) , this , SLOT ( toggleDarksend ( ) ) ) ;
2011-11-08 21:18:36 +01:00
}
2012-06-09 15:41:21 +02:00
2014-12-05 10:09:38 +01:00
// update the display unit, to not use the default ("DRK")
2012-06-09 15:41:21 +02:00
updateDisplayUnit ( ) ;
2011-07-29 14:36:35 +02:00
}
2012-06-09 15:41:21 +02:00
void OverviewPage : : updateDisplayUnit ( )
2011-07-29 14:36:35 +02:00
{
2012-10-24 21:47:07 +02:00
if ( walletModel & & walletModel - > getOptionsModel ( ) )
2012-06-09 15:41:21 +02:00
{
if ( currentBalance ! = - 1 )
2014-12-23 03:28:52 +01:00
setBalance ( currentBalance , currentUnconfirmedBalance , currentImmatureBalance , currentAnonymizedBalance ) ;
2011-08-03 20:52:18 +02:00
2012-06-09 15:41:21 +02:00
// Update txdelegate->unit with the current unit
2012-10-24 21:47:07 +02:00
txdelegate - > unit = walletModel - > getOptionsModel ( ) - > getDisplayUnit ( ) ;
2012-06-09 15:41:21 +02:00
ui - > listTransactions - > update ( ) ;
}
2011-07-11 20:42:10 +02:00
}
2012-05-15 16:57:59 +02:00
2012-10-24 21:47:07 +02:00
void OverviewPage : : updateAlerts ( const QString & warnings )
{
this - > ui - > labelAlerts - > setVisible ( ! warnings . isEmpty ( ) ) ;
this - > ui - > labelAlerts - > setText ( warnings ) ;
}
2012-05-15 16:57:59 +02:00
void OverviewPage : : showOutOfSyncWarning ( bool fShow )
{
ui - > labelWalletStatus - > setVisible ( fShow ) ;
ui - > labelTransactionsStatus - > setVisible ( fShow ) ;
}
2014-12-23 03:28:52 +01:00
void OverviewPage : : updateDarksendProgress ( ) {
int64_t balance = pwalletMain - > GetBalance ( ) ;
if ( balance = = 0 ) {
ui - > darksendProgress - > setValue ( 0 ) ;
QString s ( " No inputs detected " ) ;
2014-12-26 04:58:39 +01:00
ui - > darksendProgress - > setToolTip ( s ) ;
2014-12-23 03:28:52 +01:00
return ;
}
std : : ostringstream convert ;
//Get average rounds of inputs
double a = ( ( double ) pwalletMain - > GetAverageAnonymizedRounds ( ) / ( double ) nDarksendRounds ) * 100 ;
//Get the anon threshold
double max = nAnonymizeDarkcoinAmount ;
//If it's more than the wallet amount, limit to that.
2014-12-26 16:39:47 +01:00
if ( max > ( double ) ( pwalletMain - > GetBalance ( ) / CENT ) - 1 ) max = ( double ) ( pwalletMain - > GetBalance ( ) / CENT ) - 1 ;
2014-12-26 04:58:39 +01:00
//denominated balance / anon threshold -- the percentage that we've completed
2014-12-26 16:39:47 +01:00
double b = ( ( double ) ( pwalletMain - > GetDenominatedBalance ( ) / CENT ) / max ) ;
2014-12-23 03:28:52 +01:00
2014-12-26 04:58:39 +01:00
double val = a * b ;
2014-12-23 03:28:52 +01:00
if ( val < 0 ) val = 0 ;
if ( val > 100 ) val = 100 ;
ui - > darksendProgress - > setValue ( val ) ; //rounds avg * denom progress
convert < < " Inputs have an average of " < < pwalletMain - > GetAverageAnonymizedRounds ( ) < < " of " < < nDarksendRounds < < " rounds ( " < < a < < " / " < < b < < " ) " ;
QString s ( convert . str ( ) . c_str ( ) ) ;
ui - > darksendProgress - > setToolTip ( s ) ;
}
void OverviewPage : : darkSendStatus ( )
{
int nBestHeight = chainActive . Tip ( ) - > nHeight ;
if ( nBestHeight ! = darkSendPool . cachedNumBlocks )
{
updateDarksendProgress ( ) ;
std : : ostringstream convert2 ;
convert2 < < nAnonymizeDarkcoinAmount < < " DRK / " < < nDarksendRounds < < " Rounds " ;
QString s2 ( convert2 . str ( ) . c_str ( ) ) ;
ui - > labelAmountRounds - > setText ( s2 ) ;
}
if ( ! fEnableDarksend ) {
if ( nBestHeight ! = darkSendPool . cachedNumBlocks )
{
darkSendPool . cachedNumBlocks = nBestHeight ;
ui - > darksendEnabled - > setText ( " Disabled " ) ;
ui - > darksendStatus - > setText ( " " ) ;
ui - > toggleDarksend - > setText ( " Start Darksend Mixing " ) ;
}
return ;
}
// check darksend status and unlock if needed
if ( nBestHeight ! = darkSendPool . cachedNumBlocks )
{
// Balance and number of transactions might have changed
darkSendPool . cachedNumBlocks = nBestHeight ;
if ( pwalletMain - > GetBalance ( ) - pwalletMain - > GetAnonymizedBalance ( ) > 2 * COIN ) {
if ( walletModel - > getEncryptionStatus ( ) ! = WalletModel : : Unencrypted ) {
if ( ( nAnonymizeDarkcoinAmount * COIN ) - pwalletMain - > GetAnonymizedBalance ( ) > 1.1 * COIN & &
walletModel - > getEncryptionStatus ( ) = = WalletModel : : Locked ) {
WalletModel : : UnlockContext ctx ( walletModel - > requestUnlock ( false ) ) ;
if ( ! ctx . isValid ( ) ) {
//unlock was cancelled
fEnableDarksend = false ;
darkSendPool . cachedNumBlocks = 0 ;
LogPrintf ( " Wallet is locked and user declined to unlock. Disabling Darksend. \n " ) ;
}
}
2014-12-26 04:58:39 +01:00
if ( ( nAnonymizeDarkcoinAmount * COIN ) - pwalletMain - > GetAnonymizedBalance ( ) < = 1.1 * COIN & &
2014-12-23 03:28:52 +01:00
walletModel - > getEncryptionStatus ( ) = = WalletModel : : Unlocked & &
darkSendPool . GetMyTransactionCount ( ) = = 0 ) {
LogPrintf ( " Darksend is complete, locking wallet. \n " ) ;
walletModel - > setWalletLocked ( true ) ;
}
}
}
/* *******************************************************/
ui - > darksendEnabled - > setText ( " Enabled " ) ;
}
int state = darkSendPool . GetState ( ) ;
int entries = darkSendPool . GetEntriesCount ( ) ;
int accepted = darkSendPool . GetLastEntryAccepted ( ) ;
std : : ostringstream convert ;
if ( state = = POOL_STATUS_ACCEPTING_ENTRIES ) {
if ( entries = = 0 ) {
convert < < " Darksend is idle " ;
showingDarkSendMessage = 0 ;
} else if ( accepted = = 1 ) {
convert < < " Darksend request complete: Your transaction was accepted into the pool! " ;
if ( showingDarkSendMessage % 10 > 8 ) {
darkSendPool . lastEntryAccepted = 0 ;
showingDarkSendMessage = 0 ;
}
} else {
if ( showingDarkSendMessage % 70 < = 40 ) convert < < " Submitted to masternode, entries " < < entries < < " / " < < darkSendPool . GetMaxPoolTransactions ( ) ;
else if ( showingDarkSendMessage % 70 < = 50 ) convert < < " Submitted to masternode, Waiting for more entries ( " < < entries < < " / " < < darkSendPool . GetMaxPoolTransactions ( ) < < " ) . " ;
else if ( showingDarkSendMessage % 70 < = 60 ) convert < < " Submitted to masternode, Waiting for more entries ( " < < entries < < " / " < < darkSendPool . GetMaxPoolTransactions ( ) < < " ) .. " ;
else if ( showingDarkSendMessage % 70 < = 70 ) convert < < " Submitted to masternode, Waiting for more entries ( " < < entries < < " / " < < darkSendPool . GetMaxPoolTransactions ( ) < < " ) ... " ;
}
} else if ( state = = POOL_STATUS_SIGNING ) {
if ( showingDarkSendMessage % 70 < = 10 ) convert < < " Found enough users, signing " ;
else if ( showingDarkSendMessage % 70 < = 20 ) convert < < " Found enough users, signing ( waiting. ) " ;
else if ( showingDarkSendMessage % 70 < = 30 ) convert < < " Found enough users, signing ( waiting.. ) " ;
else if ( showingDarkSendMessage % 70 < = 40 ) convert < < " Found enough users, signing ( waiting... ) " ;
} else if ( state = = POOL_STATUS_TRANSMISSION ) {
convert < < " Transmitting final transaction " ;
} else if ( state = = POOL_STATUS_IDLE ) {
convert < < " Darksend is idle " ;
} else if ( state = = POOL_STATUS_FINALIZE_TRANSACTION ) {
convert < < " Finalizing transaction " ;
} else if ( state = = POOL_STATUS_ERROR ) {
convert < < " Darksend request incomplete: " < < darkSendPool . lastMessage < < " . Will retry... " ;
} else if ( state = = POOL_STATUS_SUCCESS ) {
convert < < " Darksend request complete: " < < darkSendPool . lastMessage ;
} else if ( state = = POOL_STATUS_QUEUE ) {
if ( showingDarkSendMessage % 70 < = 50 ) convert < < " Submitted to masternode, waiting in queue . " ;
else if ( showingDarkSendMessage % 70 < = 60 ) convert < < " Submitted to masternode, waiting in queue .. " ;
else if ( showingDarkSendMessage % 70 < = 70 ) convert < < " Submitted to masternode, waiting in queue ... " ;
} else {
convert < < " unknown state : id= " < < state ;
}
2014-12-26 04:58:39 +01:00
if ( state = = POOL_STATUS_ERROR | | state = = POOL_STATUS_SUCCESS ) darkSendPool . Check ( ) ;
2014-12-23 03:28:52 +01:00
QString s ( convert . str ( ) . c_str ( ) ) ;
if ( s ! = ui - > darksendStatus - > text ( ) )
LogPrintf ( " %s \n " , convert . str ( ) . c_str ( ) ) ;
2014-12-26 04:58:39 +01:00
2014-12-23 03:28:52 +01:00
ui - > darksendStatus - > setText ( s ) ;
showingDarkSendMessage + + ;
darksendActionCheck + + ;
// Get DarkSend Denomination Status
}
void OverviewPage : : runDoAutomaticDenomination ( ) {
darkSendPool . DoAutomaticDenominating ( ) ;
}
void OverviewPage : : toggleDarksend ( ) {
2014-12-26 04:58:39 +01:00
if ( ! fEnableDarksend ) {
int64_t balance = pwalletMain - > GetBalance ( ) ;
if ( balance < 1.49 * COIN ) {
QMessageBox : : warning ( this , tr ( " Darksend " ) ,
tr ( " Darksend requires at least 1.5 DRK to use. " ) ,
QMessageBox : : Ok , QMessageBox : : Ok ) ;
return ;
}
2014-12-23 03:28:52 +01:00
}
darkSendPool . cachedNumBlocks = 0 ;
fEnableDarksend = ! fEnableDarksend ;
if ( ! fEnableDarksend ) {
ui - > toggleDarksend - > setText ( " Start Darksend Mixing " ) ;
} else {
ui - > toggleDarksend - > setText ( " Stop Darksend Mixing " ) ;
/* show darksend configuration if client has defaults set */
if ( nAnonymizeDarkcoinAmount = = 0 ) {
DarksendConfig dlg ( this ) ;
dlg . setModel ( walletModel ) ;
dlg . exec ( ) ;
}
darkSendPool . DoAutomaticDenominating ( ) ;
}
}