Permalink
Browse files

More Lock Updates

  • Loading branch information...
Tranz5 committed Aug 14, 2014
1 parent 76f376f commit 7f48d7e6a1e7af2cc9d2c50850cdedfa2bdc48ac
Showing with 6 additions and 0 deletions.
  1. +1 −0 src/init.cpp
  2. +5 −0 src/qt/walletmodel.cpp
@@ -850,6 +850,7 @@ bool AppInit2()
}
for (unsigned int i = 0; i < vstrNames.size(); i++)
{
LOCK(vpWallets[i]->cs_wallet);
vpWallets[i]->nReserveBalance = nReserveBalance;
}
@@ -53,6 +53,7 @@ qint64 WalletModel::getBalance(const CCoinControl *coinControl) const
qint64 WalletModel::getTotBalance() const
{
LOCK(wallet->cs_wallet);
int64 nTotBalance = 0;
BOOST_FOREACH(const wallet_map::value_type& item, pWalletManager->GetWalletMap())
{
@@ -64,16 +65,19 @@ qint64 WalletModel::getTotBalance() const
qint64 WalletModel::getUnconfirmedBalance() const
{
LOCK(wallet->cs_wallet);
return wallet->GetUnconfirmedBalance();
}
qint64 WalletModel::getStake() const
{
LOCK(wallet->cs_wallet);
return wallet->GetStake();
}
qint64 WalletModel::getImmatureBalance() const
{
LOCK(wallet->cs_wallet);
return wallet->GetImmatureBalance();
}
@@ -89,6 +93,7 @@ int WalletModel::getNumTransactions() const
int WalletModel::getWalletVersion() const
{
LOCK(wallet->cs_wallet);
return wallet->GetVersion();
}

0 comments on commit 7f48d7e

Please sign in to comment.