1
0
mirror of https://github.com/lightning/bolts.git synced 2024-11-19 01:50:03 +01:00

BOLT2: change "reject" to "fail" in channel opening requirements (#1104)

Since "reject" isn't defined anywhere in the spec and "fail" does
have a definition laid out in BOLT1 that includes special
provisions for channels that have not yet been established, BOLT2
is amended to clarify the requirements for the receiver of
`accept_channel`
This commit is contained in:
ProofOfKeags 2023-08-28 06:13:59 -06:00 committed by GitHub
parent a1870e136e
commit 6e85df448b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -363,15 +363,15 @@ The sender:
The receiver:
- if `minimum_depth` is unreasonably large:
- MAY reject the channel.
- MAY fail the channel.
- if `channel_reserve_satoshis` is less than `dust_limit_satoshis` within the `open_channel` message:
- MUST reject the channel.
- MUST fail the channel.
- if `channel_reserve_satoshis` from the `open_channel` message is less than `dust_limit_satoshis`:
- MUST reject the channel.
- MUST fail the channel.
- if `channel_type` is set, and `channel_type` was set in `open_channel`, and they are not equal types:
- MUST reject the channel.
- MUST fail the channel.
- if `option_channel_type` was negotiated but the message doesn't include a `channel_type`:
- MAY reject the channel.
- MAY fail the channel.
Other fields have the same requirements as their counterparts in `open_channel`.