Commit 63b2004
committed
Account for coinbase tx in ChannelContext::minimum_depth
Now that ChannelContext::minimum_depth is not overridden with
COINBASE_MATURITY when the funding transaction is the coinbase
transaction, so do instead in the identically named method. Also, add a
minimum_depth to Channel. The one on ChannelContext can become private
once FudningScope doesn't need to be accessed directly from a
ChannelManager macro.
This fixes ChannelDetails showing an incorrect minimum depth when the
coinbase transaction is used to funded the channel.1 parent 8739bd4 commit 63b2004
File tree
3 files changed
+26
-24
lines changed- lightning/src/ln
3 files changed
+26
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1702 | 1702 | | |
1703 | 1703 | | |
1704 | 1704 | | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
1705 | 1709 | | |
1706 | 1710 | | |
1707 | 1711 | | |
| |||
3485 | 3489 | | |
3486 | 3490 | | |
3487 | 3491 | | |
3488 | | - | |
3489 | | - | |
| 3492 | + | |
| 3493 | + | |
| 3494 | + | |
| 3495 | + | |
| 3496 | + | |
| 3497 | + | |
| 3498 | + | |
| 3499 | + | |
| 3500 | + | |
| 3501 | + | |
| 3502 | + | |
| 3503 | + | |
| 3504 | + | |
| 3505 | + | |
| 3506 | + | |
| 3507 | + | |
3490 | 3508 | | |
3491 | 3509 | | |
3492 | 3510 | | |
| |||
8578 | 8596 | | |
8579 | 8597 | | |
8580 | 8598 | | |
8581 | | - | |
| 8599 | + | |
8582 | 8600 | | |
8583 | 8601 | | |
8584 | 8602 | | |
8585 | 8603 | | |
8586 | 8604 | | |
8587 | 8605 | | |
8588 | 8606 | | |
8589 | | - | |
8590 | | - | |
8591 | | - | |
8592 | | - | |
8593 | | - | |
8594 | | - | |
8595 | | - | |
8596 | | - | |
8597 | | - | |
8598 | | - | |
8599 | | - | |
8600 | | - | |
8601 | | - | |
8602 | | - | |
8603 | | - | |
8604 | | - | |
8605 | 8607 | | |
8606 | 8608 | | |
8607 | 8609 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
534 | | - | |
| 534 | + | |
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3052 | 3052 | | |
3053 | 3053 | | |
3054 | 3054 | | |
3055 | | - | |
| 3055 | + | |
3056 | 3056 | | |
3057 | 3057 | | |
3058 | 3058 | | |
| |||
7980 | 7980 | | |
7981 | 7981 | | |
7982 | 7982 | | |
7983 | | - | |
| 7983 | + | |
7984 | 7984 | | |
7985 | 7985 | | |
7986 | 7986 | | |
| |||
8056 | 8056 | | |
8057 | 8057 | | |
8058 | 8058 | | |
8059 | | - | |
| 8059 | + | |
8060 | 8060 | | |
8061 | 8061 | | |
8062 | 8062 | | |
| |||
8069 | 8069 | | |
8070 | 8070 | | |
8071 | 8071 | | |
8072 | | - | |
| 8072 | + | |
8073 | 8073 | | |
8074 | 8074 | | |
8075 | 8075 | | |
| |||
0 commit comments