Commit 76ce010
committed
Tests: take netgraph locks after peer_state
Previously we were taking the NetworkGraph::{channels,nodes} locks before
ChannelManager::per_peer_state's peer_state locks in some tests, which violated
a lock order requirement we have in ChannelManager to take netgraph locks
*after* peer_state locks. See OffersMessageFlow::path_for_release_htlc which is
called while a peer_state lock is held and takes netgraph locks while creating
blinded paths.1 parent f36f621 commit 76ce010
File tree
3 files changed
+6
-3
lines changed- lightning/src/ln
3 files changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2647 | 2647 | | |
2648 | 2648 | | |
2649 | 2649 | | |
| 2650 | + | |
2650 | 2651 | | |
2651 | 2652 | | |
2652 | 2653 | | |
2653 | 2654 | | |
2654 | | - | |
| 2655 | + | |
2655 | 2656 | | |
2656 | 2657 | | |
2657 | 2658 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2392 | 2392 | | |
2393 | 2393 | | |
2394 | 2394 | | |
| 2395 | + | |
2395 | 2396 | | |
2396 | 2397 | | |
2397 | 2398 | | |
2398 | 2399 | | |
2399 | 2400 | | |
2400 | 2401 | | |
2401 | 2402 | | |
2402 | | - | |
| 2403 | + | |
2403 | 2404 | | |
2404 | 2405 | | |
2405 | 2406 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1453 | 1453 | | |
1454 | 1454 | | |
1455 | 1455 | | |
| 1456 | + | |
1456 | 1457 | | |
1457 | 1458 | | |
1458 | 1459 | | |
1459 | 1460 | | |
1460 | | - | |
| 1461 | + | |
1461 | 1462 | | |
1462 | 1463 | | |
1463 | 1464 | | |
| |||
0 commit comments