Repository navigation
Commit eafdd93
channeld: fail channel on zero next_commitment_number
The existing BOLT #2 quote already required this, but the first
bullet was unimplemented: the only zero check sat under
next_commitment_number == next_index[REMOTE] - 1, after the
stale-revocation warning.
Implement that bullet next to the quote, and drop the nested copy.
Fixes: #9425
Changelog-Fixed: Protocol: immediately fail the channel if channel_reestablish next_commitment_number is zero.
Reported-by: Leo Nash (@tankyleo)
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>1 parent cea73b8 commit eafdd93
1 file changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5990 | 5990 | | |
5991 | 5991 | | |
5992 | 5992 | | |
| 5993 | + | |
| 5994 | + | |
| 5995 | + | |
| 5996 | + | |
| 5997 | + | |
5993 | 5998 | | |
5994 | 5999 | | |
5995 | 6000 | | |
| |||
6102 | 6107 | | |
6103 | 6108 | | |
6104 | 6109 | | |
6105 | | - | |
6106 | | - | |
6107 | | - | |
6108 | | - | |
6109 | | - | |
6110 | | - | |
6111 | | - | |
6112 | | - | |
6113 | 6110 | | |
6114 | 6111 | | |
6115 | 6112 | | |
| |||
0 commit comments