aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-08-31 10:24:45 -0700
committerGavin Andresen <gavinandresen@gmail.com>2011-08-31 10:24:45 -0700
commitcb6c4b883da6896b39bd46f845453f69d0f516f1 (patch)
treecc9de8e932d07cf2549a625e6c614a2677ec1b0e /src/main.cpp
parent21189a42a735ff66166c17c53eb44998346059d6 (diff)
parent471426fb3b2c2fa37640c03819c4f7be69ba8301 (diff)
downloadbitcoin-cb6c4b883da6896b39bd46f845453f69d0f516f1.tar.xz
Merge pull request #480 from gavinandresen/deadlocks
Simplify mutex locking, fix deadlocks. Fixes issue #453
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index f483312065..390632aaf5 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2879,7 +2879,7 @@ bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey)
reservekey.KeepKey();
// Track how many getdata requests this block gets
- CRITICAL_BLOCK(wallet.cs_mapRequestCount)
+ CRITICAL_BLOCK(wallet.cs_wallet)
wallet.mapRequestCount[pblock->GetHash()] = 0;
// Process this block the same as if we had received it from another node