1
0
Fork 0
mirror of https://github.com/lightning/bolts.git synced 2025-03-10 09:10:07 +01:00

Merge pull request #1075 from t-bast/remove-disconnect-warning

Remove requirements to disconnect on warnings
This commit is contained in:
Matt Corallo 2023-05-09 18:06:53 +00:00 committed by GitHub
commit 2bf041f382
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -358,7 +358,6 @@ A sending node:
- MAY set `channel_id` to all zero to indicate all channels. - MAY set `channel_id` to all zero to indicate all channels.
- when sending `warning`: - when sending `warning`:
- MAY set `channel_id` to all zero if the warning is not related to a specific channel. - MAY set `channel_id` to all zero if the warning is not related to a specific channel.
- MAY close the connection after sending.
- MAY send an empty `data` field. - MAY send an empty `data` field.
- when failure was caused by an invalid signature check: - when failure was caused by an invalid signature check:
- SHOULD include the raw, hex-encoded transaction in reply to a `funding_created`, `funding_signed`, `closing_signed`, or `commitment_signed` message. - SHOULD include the raw, hex-encoded transaction in reply to a `funding_created`, `funding_signed`, `closing_signed`, or `commitment_signed` message.
@ -371,8 +370,6 @@ The receiving node:
- MUST fail the channel referred to by `channel_id`, if that channel is with the sending node. - MUST fail the channel referred to by `channel_id`, if that channel is with the sending node.
- upon receiving `warning`: - upon receiving `warning`:
- SHOULD log the message for later diagnosis. - SHOULD log the message for later diagnosis.
- MAY disconnect.
- MAY reconnect after some delay to retry.
- MAY attempt `shutdown` if permitted at this point. - MAY attempt `shutdown` if permitted at this point.
- if no existing channel is referred to by `channel_id`: - if no existing channel is referred to by `channel_id`:
- MUST ignore the message. - MUST ignore the message.