Commit e7a422b
committed
fix: remove redundant cs_wallet lock around requestMempoolTransactions
The WITH_LOCK(cs_wallet, ...) wrapper around chain().requestMempoolTransactions()
creates a cs_wallet → cs_main lock ordering:
requestMempoolTransactions acquires LOCK2(cs_main, mempool->cs), then calls
transactionAddedToMempool which does LOCK(cs_wallet).
This is inconsistent with the typical cs_main → cs_wallet ordering and would
trigger DEBUG_LOCKORDER assertions.
The wrapper is unnecessary since transactionAddedToMempool acquires cs_wallet
internally per-transaction. Remove it.
Closes #72261 parent 32fa1a8 commit e7a422b
2 files changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1477 | 1477 | | |
1478 | 1478 | | |
1479 | 1479 | | |
1480 | | - | |
1481 | | - | |
1482 | | - | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
1483 | 1490 | | |
1484 | 1491 | | |
1485 | 1492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2011 | 2011 | | |
2012 | 2012 | | |
2013 | 2013 | | |
2014 | | - | |
| 2014 | + | |
2015 | 2015 | | |
2016 | 2016 | | |
2017 | 2017 | | |
| |||
0 commit comments