mirror of
https://github.com/dogecoin/dogecoin.git
synced 2026-02-24 22:29:03 +00:00
Merge pull request #684 from rnicoll/1.8.1-dev-available-coins
AvailableCoins() now acquires cs_main lock
This commit is contained in:
commit
7cf4e7e97d
@ -1140,7 +1140,7 @@ void CWallet::AvailableCoins(vector<COutput>& vCoins, bool fOnlyConfirmed, const
|
||||
vCoins.clear();
|
||||
|
||||
{
|
||||
LOCK(cs_wallet);
|
||||
LOCK2(cs_main, cs_wallet);
|
||||
for (map<uint256, CWalletTx>::const_iterator it = mapWallet.begin(); it != mapWallet.end(); ++it)
|
||||
{
|
||||
const uint256& wtxid = it->first;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user