Table of Contents

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 ChannelReestablishPayload
nextFundingTlv NextFundingTlv

Properties

NextFundingTlv

public NextFundingTlv? NextFundingTlv { get; }

Property Value

NextFundingTlv

Payload

The payload of the message.

public ChannelReestablishPayload Payload { get; }

Property Value

ChannelReestablishPayload

Methods

DeserializeAsync(Stream)

Deserialize a ChannelReestablishMessage from a stream.

public static Task<ChannelReestablishMessage> DeserializeAsync(Stream stream)

Parameters

stream Stream

The stream to deserialize from.

Returns

Task<ChannelReestablishMessage>

The deserialized ChannelReestablishMessage.

Exceptions

MessageSerializationException

Error deserializing ChannelReestablishMessage