Commit 9d9cfe6
committed
Add debug assertions on revoked counterparty tx number fetching
We actually store the latest counterparty revoked commitment
transaction number in two places in `Channel` - as
`context.cur_counterparty_commitment_transaction_number + 2` and
in `commitment_secrets`.
Here we add a debug assertion that both values are equal.1 parent 8d86558 commit 9d9cfe6
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9608 | 9608 | | |
9609 | 9609 | | |
9610 | 9610 | | |
9611 | | - | |
| 9611 | + | |
| 9612 | + | |
| 9613 | + | |
9612 | 9614 | | |
9613 | 9615 | | |
9614 | 9616 | | |
| |||
0 commit comments