lock wallet for select

This commit is contained in:
Evan Duffield 2015-08-14 19:06:00 -07:00
parent 0d5ca11c9a
commit 24b7028b2e

View File

@ -348,6 +348,9 @@ bool CActiveMasternode::GetMasterNodeVin(CTxIn& vin, CPubKey& pubkey, CKey& secr
bool CActiveMasternode::GetMasterNodeVin(CTxIn& vin, CPubKey& pubkey, CKey& secretKey, std::string strTxHash, std::string strOutputIndex) {
// Find possible candidates
TRY_LOCK(pwalletMain->cs_wallet, fWallet);
if(!fWallet) return false;
vector<COutput> possibleCoins = SelectCoinsMasternode();
COutput *selectedOutput;