Commit b859361
MarcoFalke
Merge bitcoin#21775: p2p: Limit m_block_inv_mutex
fac96d0 p2p: Limit m_block_inv_mutex (MarcoFalke)
Pull request description:
Keeping the lock longer than needed is confusing to reviewers and thread analysis. For example, keeping the lock while appending tx-invs, which requires the mempool lock, will tell thread analysis tools an incorrect lock order of `(1) m_block_inv_mutex, (2) pool.cs`.
ACKs for top commit:
Crypt-iQ:
crACK fac96d0
jnewbery:
utACK fac96d0
theStack:
Code-Review ACK fac96d0
Tree-SHA512: fcfac0f1f8b16df7522513abf716b2eed3d2fc9153f231c8cb61f451e342f29c984a5c872deca6bab3e601e5d651874cc229146c9370e46811b4520747a21f2b1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4449 | 4449 | | |
4450 | 4450 | | |
4451 | 4451 | | |
| 4452 | + | |
4452 | 4453 | | |
4453 | | - | |
| 4454 | + | |
4454 | 4455 | | |
4455 | 4456 | | |
4456 | 4457 | | |
| |||
4578 | 4579 | | |
4579 | 4580 | | |
4580 | 4581 | | |
4581 | | - | |
4582 | 4582 | | |
4583 | 4583 | | |
4584 | 4584 | | |
| |||
0 commit comments