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

added a channel_disabled error message

This commit is contained in:
pm47 2017-05-12 16:51:53 +02:00 committed by Rusty Russell
parent b7a90e7e6a
commit c60e5e05ec

View File

@ -487,7 +487,7 @@ If the ephemeral key in the onion is unparsable:
* [`32`:`sha256_of_onion`]
If an otherwise unspecified transient error occurs for the outgoing
channel (eg. peer unresponsive, channel capacity reached):
channel (eg. channel capacity reached, too many in-flight htlc):
1. type: UPDATE|7 (`temporary_channel_failure`)
2. data:
@ -546,6 +546,15 @@ setting for the outgoing channel:
2. data:
* [`2`:`len`]
* [`len`:`channel_update`]
If the channel is disabled, we tell them the the current channel
setting for the outgoing channel:
1. type: UPDATE|20 (`channel_disabled`)
2. data:
* [`2`: `flags`]
* [`2`:`len`]
* [`len`:`channel_update`]
The final node may return one of the following errors, intermediate
nodes MUST NOT: