Commit 8d947e7
committed
Check in-flight updates before completing events on closed chans
When we handle a `ChannelMonitorUpdate` completion we always
complete everything that was waiting on any updates to the same
channel all at once. Thus, we need to skip all updates if there's
pending updates besides the one that was just completed.
We handled this correctly for open channels, but the shortcut for
closed channels ignored any other pending updates entirely.
Here we fix this, which is ultimately required for tests which are
added in a few commits to pass.1 parent 4bff28a commit 8d947e7
1 file changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7665 | 7665 | | |
7666 | 7666 | | |
7667 | 7667 | | |
| 7668 | + | |
| 7669 | + | |
| 7670 | + | |
| 7671 | + | |
| 7672 | + | |
| 7673 | + | |
| 7674 | + | |
7668 | 7675 | | |
7669 | 7676 | | |
7670 | 7677 | | |
7671 | 7678 | | |
| 7679 | + | |
| 7680 | + | |
| 7681 | + | |
| 7682 | + | |
7672 | 7683 | | |
7673 | 7684 | | |
7674 | 7685 | | |
7675 | 7686 | | |
7676 | 7687 | | |
7677 | 7688 | | |
7678 | 7689 | | |
7679 | | - | |
7680 | | - | |
7681 | | - | |
7682 | | - | |
7683 | | - | |
| 7690 | + | |
7684 | 7691 | | |
7685 | 7692 | | |
7686 | 7693 | | |
7687 | 7694 | | |
7688 | | - | |
| 7695 | + | |
7689 | 7696 | | |
7690 | 7697 | | |
7691 | 7698 | | |
| |||
0 commit comments