Class UpdateFailHtlcMessage
- Namespace
- NLightning.Bolts.BOLT2.Messages
- Assembly
- NLightning.Bolts.dll
Represents a update_fail_htlc message.
public sealed class UpdateFailHtlcMessage : BaseMessage, IMessage
- Inheritance
-
UpdateFailHtlcMessage
- Implements
- Inherited Members
Remarks
The update_fail_htlc message is sent to let the peer know that the htlc has failed The message type is 131.
Constructors
UpdateFailHtlcMessage(UpdateFailHtlcPayload)
Represents a update_fail_htlc message.
public UpdateFailHtlcMessage(UpdateFailHtlcPayload payload)
Parameters
payload
UpdateFailHtlcPayload
Remarks
The update_fail_htlc message is sent to let the peer know that the htlc has failed The message type is 131.
Properties
Payload
The payload of the message.
public UpdateFailHtlcPayload Payload { get; }
Property Value
Methods
DeserializeAsync(Stream)
Deserialize a UpdateFailHtlcMessage from a stream.
public static Task<UpdateFailHtlcMessage> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to deserialize from.
Returns
- Task<UpdateFailHtlcMessage>
The deserialized UpdateFailHtlcMessage.
Exceptions
- MessageSerializationException
Error deserializing UpdateFailHtlcMessage