dash/src/masternode
gabriel-bjg 41190e9899
Fix data races triggered by functional tests. (#4247)
Function CWallet::KeepKey requires locking as it has concurrent access to database and member nKeysLeftSinceAutoBackup.

Avoid data race when reading setInventoryTxToSend size by locking the read. If locking happens after the read, the size may change.

Lock cs_mnauth when reading verifiedProRegTxHash.

Make fRPCRunning atomic as it can be read/written from different threads simultaneously.

Make m_masternode_iqr_connection atomic as it can be read/written from different threads simultaneously.

Use a recursive mutex to synchronize concurrent access to quorumVvec.

Make m_masternode_connection atomic as it can be read/written from different threads simultaneously.

Make m_masternode_probe_connection atomic as it can be read/written from different threads simultaneously.

Use a recursive mutex in order to lock access to activeMasterNode.

Use a recursive mutex to synchronize concurrent access to skShare.

Guarded all mnauth fields of a CNode.

Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
2021-07-26 10:52:52 -05:00
..
activemasternode.cpp Fix data races triggered by functional tests. (#4247) 2021-07-26 10:52:52 -05:00
activemasternode.h Fix data races triggered by functional tests. (#4247) 2021-07-26 10:52:52 -05:00
masternode-meta.cpp
masternode-meta.h
masternode-payments.cpp
masternode-payments.h
masternode-sync.cpp Merge #16248: Make whitebind/whitelist permissions more flexible 2021-07-19 19:00:04 -05:00
masternode-sync.h
masternode-utils.cpp Merge #13235: Break circular dependency: init -> * -> init by extracting shutdown.h 2021-07-02 00:42:18 +03:00
masternode-utils.h