Commit 4fed989
committed
fix dummy_monitor current_counterparty_commitment_number in test helper instead of production constructor
The production constructor's 1 << 48 is a sentinel meaning 'counterparty
commitment not yet received'. Changing it to (1 << 48) - 1 aligns it with
INITIAL_COMMITMENT_NUMBER, which is observable in is_closed_without_updates().
Instead, fix the value in dummy_monitor() after construction so the sentinel
is preserved in production code.1 parent 170e67a commit 4fed989
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1952 | 1952 | | |
1953 | 1953 | | |
1954 | 1954 | | |
1955 | | - | |
| 1955 | + | |
1956 | 1956 | | |
1957 | 1957 | | |
1958 | 1958 | | |
| |||
7017 | 7017 | | |
7018 | 7018 | | |
7019 | 7019 | | |
7020 | | - | |
| 7020 | + | |
7021 | 7021 | | |
7022 | 7022 | | |
7023 | 7023 | | |
| |||
7031 | 7031 | | |
7032 | 7032 | | |
7033 | 7033 | | |
7034 | | - | |
| 7034 | + | |
| 7035 | + | |
| 7036 | + | |
| 7037 | + | |
| 7038 | + | |
| 7039 | + | |
| 7040 | + | |
7035 | 7041 | | |
7036 | 7042 | | |
7037 | 7043 | | |
| |||
0 commit comments