fixed locking bug

This commit is contained in:
Evan Duffield 2014-08-11 19:54:36 -07:00
parent 58da56cea3
commit 04c38fff9a

View File

@ -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;