Commit 4a81e65
committed
Implement From<PendingV2Channel> for ChannelPhase
Exposing ChannelPhase in ChannelManager has led to verbose match
statements, which need to be modified each time a ChannelPhase is added.
Making ChannelPhase an implementation detail of Channel would help avoid
this.
As a step in this direction, define a conversion from PendingV2Channel
to ChannelPhase (to be renamed Channel).1 parent e8c4849 commit 4a81e65
2 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1378 | 1378 | | |
1379 | 1379 | | |
1380 | 1380 | | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
1381 | 1391 | | |
1382 | 1392 | | |
1383 | 1393 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7713 | 7713 | | |
7714 | 7714 | | |
7715 | 7715 | | |
7716 | | - | |
| 7716 | + | |
7717 | 7717 | | |
7718 | 7718 | | |
7719 | 7719 | | |
| |||
7991 | 7991 | | |
7992 | 7992 | | |
7993 | 7993 | | |
7994 | | - | |
| 7994 | + | |
7995 | 7995 | | |
7996 | 7996 | | |
7997 | 7997 | | |
| |||
0 commit comments