Skip to content

Commit

Permalink
BOLT2: change "reject" to "fail" in channel opening requirements (#1104)
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
ProofOfKeags authored Aug 28, 2023
1 parent a1870e1 commit 6e85df4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions 02-peer-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down

0 comments on commit 6e85df4

Please sign in to comment.