Skip to content

Commit

Permalink
BOLT 2: fix placement of chain_hash requirement.
Browse files Browse the repository at this point in the history
Reported-by: Matthias Grundmann @Mattias-G
Fixes: #453
Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Jul 26, 2018
1 parent f971e0d commit 4b62d26
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions 02-peer-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ The receiving node MAY fail the channel if:
- it considers `dust_limit_satoshis` too small and plans to rely on the sending node publishing its commitment transaction in the event of a data loss (see [message-retransmission](02-peer-protocol.md#message-retransmission)).

The receiving node MUST fail the channel if:
- the `chain_hash` value is set to a hash of a chain that is unknown to the receiver.
- `push_msat` is greater than `funding_satoshis` * 1000.
- `to_self_delay` is unreasonably large.
- `max_accepted_htlcs` is greater than 483.
Expand Down Expand Up @@ -280,9 +281,6 @@ avoid double-spending of the funding transaction.
- MUST set `dust_limit_satoshis` less than or equal to `channel_reserve_satoshis` from the `open_channel` message.

The receiver:
- if the `chain_hash` value, within the `open_channel`, message is set to a hash
of a chain that is unknown to the receiver:
- MUST reject the channel.
- if `minimum_depth` is unreasonably large:
- MAY reject the channel.
- if `channel_reserve_satoshis` is less than `dust_limit_satoshis` within the `open_channel` message:
Expand Down

0 comments on commit 4b62d26

Please sign in to comment.