You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Routing nodes have an incentive to use low fees when opening channels to
ensure their activity is economically viable.
However, when a funding transaction takes too long to confirm, the fundee
may have forgotten the channel. In that case the funder is forced to
broadcast the first commit tx to get his funds back and then open a new
channel, which is costly.
We can avoid this issue by simply knowing how long the fundee will wait,
and ensuring the funding tx confirms before that period ends. We set this
timeout to 2016 blocks (2 weeks).
Copy file name to clipboardExpand all lines: 02-peer-protocol.md
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -351,6 +351,7 @@ The sender MUST set:
351
351
The sender:
352
352
- when creating the funding transaction:
353
353
- SHOULD use only BIP141 (Segregated Witness) inputs.
354
+
- SHOULD ensure the funding transaction confirms in the next 2016 blocks.
354
355
355
356
The recipient:
356
357
- if `signature` is incorrect OR non-compliant with LOW-S-standard rule<sup>[LOWS](https://github.com/bitcoin/bitcoin/pull/6769)</sup>:
@@ -362,6 +363,9 @@ The `funding_output_index` can only be 2 bytes, since that's how it's packed int
362
363
363
364
A transaction with all Segregated Witness inputs is not malleable, hence the funding transaction recommendation.
364
365
366
+
The funder may use CPFP on a change output to ensure that the funding transaction confirms before 2016 blocks,
367
+
otherwise the fundee may forget that channel.
368
+
365
369
### The `funding_signed` Message
366
370
367
371
This message gives the funder the signature it needs for the first
@@ -415,16 +419,15 @@ This message indicates that the funding transaction has reached the `minimum_dep
415
419
The sender MUST:
416
420
- NOT send `funding_locked` unless outpoint of given by `funding_txid` and
417
421
`funding_output_index` in the `funding_created` message pays exactly `funding_satoshis` to the scriptpubkey specified in [BOLT #3](03-transactions.md#funding-transaction-output).
418
-
- wait until the funding transaction has reached
419
-
`minimum_depth` before sending this message.
420
-
- set `next_per_commitment_point` to the
421
-
per-commitment point to be used for the following commitment
0 commit comments