Commit a49e299
committed
Account for coinbase tx in ChannelContext::minimum_depth
Now that FundedScope::minimum_depth_override is used to override the
minimum depth with COINBASE_MATURITY when the funding transaction is the
coinbase transaction, use this in ChannelContext::minimum_depth 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 fund the channel.1 parent 4325faf commit a49e299
File tree
3 files changed
+14
-10
lines changed- lightning/src/ln
3 files changed
+14
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1852 | 1852 | | |
1853 | 1853 | | |
1854 | 1854 | | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
1855 | 1859 | | |
1856 | 1860 | | |
1857 | 1861 | | |
| |||
3690 | 3694 | | |
3691 | 3695 | | |
3692 | 3696 | | |
3693 | | - | |
3694 | | - | |
| 3697 | + | |
| 3698 | + | |
3695 | 3699 | | |
3696 | 3700 | | |
3697 | 3701 | | |
| |||
9021 | 9025 | | |
9022 | 9026 | | |
9023 | 9027 | | |
9024 | | - | |
9025 | | - | |
9026 | | - | |
| 9028 | + | |
| 9029 | + | |
| 9030 | + | |
9027 | 9031 | | |
9028 | 9032 | | |
9029 | 9033 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
3174 | 3174 | | |
3175 | 3175 | | |
3176 | 3176 | | |
3177 | | - | |
| 3177 | + | |
3178 | 3178 | | |
3179 | 3179 | | |
3180 | 3180 | | |
| |||
8375 | 8375 | | |
8376 | 8376 | | |
8377 | 8377 | | |
8378 | | - | |
| 8378 | + | |
8379 | 8379 | | |
8380 | 8380 | | |
8381 | 8381 | | |
| |||
8456 | 8456 | | |
8457 | 8457 | | |
8458 | 8458 | | |
8459 | | - | |
| 8459 | + | |
8460 | 8460 | | |
8461 | 8461 | | |
8462 | 8462 | | |
| |||
8469 | 8469 | | |
8470 | 8470 | | |
8471 | 8471 | | |
8472 | | - | |
| 8472 | + | |
8473 | 8473 | | |
8474 | 8474 | | |
8475 | 8475 | | |
| |||
0 commit comments