Commit c49f632
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 5238bdb commit c49f632
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 | |
|---|---|---|---|
| |||
1668 | 1668 | | |
1669 | 1669 | | |
1670 | 1670 | | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
1671 | 1675 | | |
1672 | 1676 | | |
1673 | 1677 | | |
| |||
3450 | 3454 | | |
3451 | 3455 | | |
3452 | 3456 | | |
3453 | | - | |
3454 | | - | |
| 3457 | + | |
| 3458 | + | |
| 3459 | + | |
| 3460 | + | |
| 3461 | + | |
| 3462 | + | |
| 3463 | + | |
| 3464 | + | |
| 3465 | + | |
| 3466 | + | |
| 3467 | + | |
| 3468 | + | |
| 3469 | + | |
| 3470 | + | |
| 3471 | + | |
| 3472 | + | |
3455 | 3473 | | |
3456 | 3474 | | |
3457 | 3475 | | |
| |||
8423 | 8441 | | |
8424 | 8442 | | |
8425 | 8443 | | |
8426 | | - | |
| 8444 | + | |
8427 | 8445 | | |
8428 | 8446 | | |
8429 | 8447 | | |
8430 | 8448 | | |
8431 | 8449 | | |
8432 | 8450 | | |
8433 | 8451 | | |
8434 | | - | |
8435 | | - | |
8436 | | - | |
8437 | | - | |
8438 | | - | |
8439 | | - | |
8440 | | - | |
8441 | | - | |
8442 | | - | |
8443 | | - | |
8444 | | - | |
8445 | | - | |
8446 | | - | |
8447 | | - | |
8448 | | - | |
8449 | | - | |
8450 | 8452 | | |
8451 | 8453 | | |
8452 | 8454 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
3050 | 3050 | | |
3051 | 3051 | | |
3052 | 3052 | | |
3053 | | - | |
| 3053 | + | |
3054 | 3054 | | |
3055 | 3055 | | |
3056 | 3056 | | |
| |||
7971 | 7971 | | |
7972 | 7972 | | |
7973 | 7973 | | |
7974 | | - | |
| 7974 | + | |
7975 | 7975 | | |
7976 | 7976 | | |
7977 | 7977 | | |
| |||
8047 | 8047 | | |
8048 | 8048 | | |
8049 | 8049 | | |
8050 | | - | |
| 8050 | + | |
8051 | 8051 | | |
8052 | 8052 | | |
8053 | 8053 | | |
| |||
8060 | 8060 | | |
8061 | 8061 | | |
8062 | 8062 | | |
8063 | | - | |
| 8063 | + | |
8064 | 8064 | | |
8065 | 8065 | | |
8066 | 8066 | | |
| |||
0 commit comments