mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Hold locks in CHDChain::swap()
This commit is contained in:
parent
0f17a13b9b
commit
934826d0d2
@ -74,6 +74,7 @@ public:
|
||||
|
||||
// by swapping the members of two classes,
|
||||
// the two classes are effectively swapped
|
||||
LOCK2(first.cs, second.cs);
|
||||
swap(first.nVersion, second.nVersion);
|
||||
swap(first.id, second.id);
|
||||
swap(first.fCrypted, second.fCrypted);
|
||||
|
Loading…
Reference in New Issue
Block a user