File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ layout : pr
3+ date : 2023-09-01
4+ title : " Handle if funding output is in a coinbase transaction"
5+ pr : 1924
6+ authors : [benthecarman]
7+ components : ["ChannelManager", "Channel"]
8+ host : dunxen
9+ status : upcoming
10+ commit :
11+ ---
12+
13+ ## Notes
14+
15+ * Miners are able to open a Lightning channel using the coinbase transaction of a new block. However, according to bitcoin consensus rules,
16+ the outputs of coinbase transactions are not spendable until they reach 100 blocks, known as the coinbase maturity delay.
17+ * As pointed out in [ lightning/bolts #1011 ] ( https://github.com/lightning/bolts/issues/1011 ) , Lightning implementations need to ensure that
18+ sending ` channel_ready ` is delayed for 100 blocks.
19+
20+ ## Questions
21+
22+ 1 . Did you have a quick glance or review of the PR?
23+ 1 . How do we practically enforce the delay of 100 blocks before sending a ` channel_open ` for channels with coinbase funding transaction in the PR?
24+ 1 . Why do we not need to worry about adding any buffer on top of the 100 block maturation delay? Think in terms of re-orgs.
25+ 1 . In the Lightning protocol, it's important that the funding transactions (and all others) are non-malleable (their txids are not malleable).
26+ Usually we think of transactions solely spending segwit-style UTXOs as being non-malleable. In what sense are coinbase transactions non-malleable?
27+ 1 . Before this PR was it possible for LDK users (who are miners) to open channels using coinbase transactions with the checks we had. Why or why not?
28+ 1 . How should 0conf coinbase-funded channels be handled? What if we want to close them within the coinbase maturation period?
You can’t perform that action at this time.
0 commit comments