Class ChannelReestablishMessage
- Namespace
- NLightning.Bolts.BOLT2.Messages
- Assembly
- NLightning.Bolts.dll
Represents a channel_reestablish message.
public sealed class ChannelReestablishMessage : BaseMessage, IMessage
- Inheritance
-
ChannelReestablishMessage
- Implements
- Inherited Members
Remarks
The channel_reestablish message is sent when a connection is lost. The message type is 136.
Constructors
ChannelReestablishMessage(ChannelReestablishPayload, NextFundingTlv?)
public ChannelReestablishMessage(ChannelReestablishPayload payload, NextFundingTlv? nextFundingTlv = null)
Parameters
payload
ChannelReestablishPayloadnextFundingTlv
NextFundingTlv
Properties
NextFundingTlv
public NextFundingTlv? NextFundingTlv { get; }
Property Value
Payload
The payload of the message.
public ChannelReestablishPayload Payload { get; }
Property Value
Methods
DeserializeAsync(Stream)
Deserialize a ChannelReestablishMessage from a stream.
public static Task<ChannelReestablishMessage> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to deserialize from.
Returns
- Task<ChannelReestablishMessage>
The deserialized ChannelReestablishMessage.
Exceptions
- MessageSerializationException
Error deserializing ChannelReestablishMessage