HorizenOfficial / zen

Horizen
https://www.horizen.io
Other
264 stars 120 forks source link

Backport of Bitcoin PR #21750 #608

Closed JackPiri closed 1 year ago

JackPiri commented 1 year ago

Backport of Bitcoin PR #21750 (https://github.com/bitcoin/bitcoin/pull/21750).

Referencing Bitcoin PR description, _"[...] Indeed all locks of CNode::cs_vSend are done either when the reference count is >0 or under the protection of CConnman::cs_vNodes and the node being in CConnman::vNodes. [...]"_ still applies to Zend current codebase:

Regarding the other two locks: