Skip to content

Commit

Permalink
Merge pull request bitcoin#44 from dexX7/mcore-0.0.9-zathras-ui-lock-…
Browse files Browse the repository at this point in the history
…block-detection

Initialization: lock cs_main during out of order block storage detection
  • Loading branch information
zathras-crypto committed Feb 27, 2015
2 parents 394bb24 + 4c35390 commit 0921136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3040,7 +3040,7 @@ bool InitBlockIndex() {

bool CheckForOutOfOrderBlockStorage()
{
AssertLockHeld(cs_main);
LOCK(cs_main);

int nHeight = 0;
int nFilePrev = 0;
Expand Down

0 comments on commit 0921136

Please sign in to comment.