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
Bolt 1: Specify that extensions to existing messages must use TLV
The spec already prepared a hook to add additional information to existing
messages (additional bytes at the end of a message must be ignored).
Since we're using TLV in many places, it makes sense to use that optional
additional space at the end of each message to allow an optional tlv stream.
This requires making a few previously optional fields mandatory:
- channel_reestablish commitment points: it makes sense to always include those
regardless of whether `option_dataloss_protect` or `option_static_remotekey` are set.
- option_upfront_shutdown_script: if you're not using one, just set the length to 0.
That field is moved to a TLV record because luckily, the resulting bytes are the same.
This provides more flexibility to later remove the requirement of making this field mandatory.
No need to change the `channel_update`'s `htlc_maximum_msat` because
the `message_flags` encode its presence/absence.
It can still be either included or omitted without causing issues to the extension stream.
The `chain_hash` value denotes the exact blockchain that the opened channel will
130
135
reside within. This is usually the genesis hash of the respective blockchain.
@@ -207,9 +212,11 @@ The sending node:
207
212
- MUST set `channel_reserve_satoshis` greater than or equal to `dust_limit_satoshis`.
208
213
- MUST set undefined bits in `channel_flags` to 0.
209
214
- if both nodes advertised the `option_upfront_shutdown_script` feature:
210
-
- MUST include either a valid `shutdown_scriptpubkey` as required by `shutdown``scriptpubkey`, or a zero-length `shutdown_scriptpubkey`.
215
+
- MUST include `upfront_shutdown_script` with either a valid `shutdown_scriptpubkey` as required by `shutdown``scriptpubkey`, or a zero-length `shutdown_scriptpubkey`.
211
216
- otherwise:
212
-
- MAY include a`shutdown_scriptpubkey`.
217
+
- MAY include `upfront_shutdown_script`.
218
+
- if it includes `open_channel_tlvs`:
219
+
- MUST include `upfront_shutdown_script`.
213
220
214
221
The sending node SHOULD:
215
222
- set `to_self_delay` sufficient to ensure the sender can irreversibly spend a commitment transaction output, in case of misbehavior by the receiver.
@@ -291,8 +298,13 @@ funding transaction and both versions of the commitment transaction.
0 commit comments