Skip to content

Commit 305ccaa

Browse files
committed
Add missing LOCK(cs_main)
1 parent 9d97e83 commit 305ccaa

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)