Commit 7aa17e6
committed
Implement chain::Listen without using RefCell
The implementation of chain::Listen for ChannelMonitor required using a
RefCell since its block_connected method required a mutable borrow. This
is no longer the case since ChannelMonitor now uses interior mutability
via a Mutex. So the RefCell is no longer needed.1 parent 9a4f2a2 commit 7aa17e6
File tree
2 files changed
+5
-7
lines changed- lightning-block-sync/src
- lightning/src/chain
2 files changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
86 | | - | |
| 85 | + | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| |||
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
95 | | - | |
| 94 | + | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
2474 | 2473 | | |
2475 | 2474 | | |
2476 | 2475 | | |
2477 | | - | |
| 2476 | + | |
2478 | 2477 | | |
2479 | 2478 | | |
2480 | 2479 | | |
2481 | 2480 | | |
2482 | 2481 | | |
2483 | 2482 | | |
2484 | 2483 | | |
2485 | | - | |
| 2484 | + | |
2486 | 2485 | | |
2487 | 2486 | | |
2488 | 2487 | | |
2489 | | - | |
| 2488 | + | |
2490 | 2489 | | |
2491 | 2490 | | |
2492 | 2491 | | |
| |||
0 commit comments