mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Fixed segfault causes by coins view
This commit is contained in:
parent
7e087dadb9
commit
26ebf1d7cb
@ -2206,6 +2206,13 @@ void ThreadCheckDarkSendPool()
|
||||
darkSendPool.CheckTimeout();
|
||||
|
||||
if(c % 60 == 0){
|
||||
LOCK(cs_main);
|
||||
/*
|
||||
cs_main is required for doing masternode.Check because something
|
||||
is modifying the coins view without a mempool lock. It causes
|
||||
segfaults from this code without the cs_main lock.
|
||||
*/
|
||||
|
||||
vector<CMasterNode>::iterator it = vecMasternodes.begin();
|
||||
//check them separately
|
||||
while(it != vecMasternodes.end()){
|
||||
|
Loading…
Reference in New Issue
Block a user