mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
addrman: Add missing lock in Clear() (CAddrMan)
The variable vRandom is guarded by the mutex cs.
This commit is contained in:
parent
bb9ab0fccf
commit
3ab545d7f8
@ -455,6 +455,7 @@ public:
|
||||
|
||||
void Clear()
|
||||
{
|
||||
LOCK(cs);
|
||||
std::vector<int>().swap(vRandom);
|
||||
nKey = GetRandHash();
|
||||
for (size_t bucket = 0; bucket < ADDRMAN_NEW_BUCKET_COUNT; bucket++) {
|
||||
|
Loading…
Reference in New Issue
Block a user