Skip to content

Commit 8cd9007

Browse files
committed
Merge pull request #4204
305ccaa Add missing LOCK(cs_main) (Pieter Wuille)
2 parents 6fcdad7 + 305ccaa commit 8cd9007

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3488,7 +3488,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
34883488
return true;
34893489
}
34903490

3491-
State(pfrom->GetId())->nLastBlockProcess = GetTimeMicros();
3491+
{
3492+
LOCK(cs_main);
3493+
State(pfrom->GetId())->nLastBlockProcess = GetTimeMicros();
3494+
}
34923495

34933496

34943497

0 commit comments

Comments
 (0)