mirror of
https://github.com/lightning/bolts.git
synced 2024-11-19 10:00:04 +01:00
Echo channel_type in accept_channel
One argument for adding a feature bit for channel types was to make things more explicit and remove ambiguity. When sending `open_channel`, we require funders to include a `channel_type`, so it would make sense to require fundees to echo that `channel_type` back to explicitly confirm that they're ok with this `channel_type`.
This commit is contained in:
parent
e60d594abf
commit
32a76e80c7
@ -348,8 +348,8 @@ The sender:
|
|||||||
avoid double-spending of the funding transaction.
|
avoid double-spending of the funding transaction.
|
||||||
- MUST set `channel_reserve_satoshis` greater than or equal to `dust_limit_satoshis` from the `open_channel` message.
|
- MUST set `channel_reserve_satoshis` greater than or equal to `dust_limit_satoshis` from the `open_channel` message.
|
||||||
- MUST set `dust_limit_satoshis` less than or equal to `channel_reserve_satoshis` from the `open_channel` message.
|
- MUST set `dust_limit_satoshis` less than or equal to `channel_reserve_satoshis` from the `open_channel` message.
|
||||||
- if it sets `channel_type`:
|
- if `option_channel_type` was negotiated:
|
||||||
- MUST set it to the `channel_type` from `open_channel`
|
- MUST set `channel_type` to the `channel_type` from `open_channel`
|
||||||
|
|
||||||
The receiver:
|
The receiver:
|
||||||
- if `minimum_depth` is unreasonably large:
|
- if `minimum_depth` is unreasonably large:
|
||||||
@ -360,6 +360,8 @@ The receiver:
|
|||||||
- MUST reject the channel.
|
- MUST reject the channel.
|
||||||
- if `channel_type` is set, and `channel_type` was set in `open_channel`, and they are not equal types:
|
- if `channel_type` is set, and `channel_type` was set in `open_channel`, and they are not equal types:
|
||||||
- MUST reject the channel.
|
- MUST reject the channel.
|
||||||
|
- if `option_channel_type` was negotiated but the message doesn't include a `channel_type`:
|
||||||
|
- MAY reject the channel.
|
||||||
|
|
||||||
Other fields have the same requirements as their counterparts in `open_channel`.
|
Other fields have the same requirements as their counterparts in `open_channel`.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user