mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 05:23:01 +01:00
fixed locking bug
This commit is contained in:
parent
58da56cea3
commit
04c38fff9a
@ -272,6 +272,7 @@ void SendCoinsDialog::darkSendStatus()
|
||||
// Balance and number of transactions might have changed
|
||||
cachedNumBlocks = nBestHeight;
|
||||
|
||||
if (pwalletMain->GetBalance() - pwalletMain->GetAnonymizedBalance() > 2*COIN){
|
||||
if (model->getEncryptionStatus() != WalletModel::Unencrypted){
|
||||
if((nAnonymizeDarkcoinAmount*COIN)-pwalletMain->GetAnonymizedBalance() > 1.1*COIN && model->getEncryptionStatus() == WalletModel::Locked){
|
||||
WalletModel::UnlockContext ctx(model->requestUnlock());
|
||||
@ -289,6 +290,7 @@ void SendCoinsDialog::darkSendStatus()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//if(!darkSendPool.sessionFoundMasternode) return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user