Permalink
Browse files

Add lock during S4C

  • Loading branch information...
Tranz5 committed Aug 21, 2014
1 parent f6d8d6f commit 792404896a3ab3dd04ea96eb3fe75c427b0bce94
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/wallet.cpp
View
@@ -1220,15 +1220,14 @@ bool fGlobalStakeForCharity = false;
bool CWallet::StakeForCharity ()
{
-
if ( IsInitialBlockDownload() || IsLocked() )
return false;
CWalletTx wtx;
int64 nNet = 0;
{
- LOCK(cs_wallet);
+ LOCK2(cs_main, cs_wallet);
for (map<uint256, CWalletTx>::const_iterator it = mapWallet.begin(); it != mapWallet.end(); ++it)
{
const CWalletTx* pcoin = &(*it).second;

0 comments on commit 7924048

Please sign in to comment.