Table of Contents

Class UpdateFailMalformedHtlcPayload

Namespace
NLightning.Domain.Protocol.Payloads
Assembly
NLightning.Domain.dll

Represents the payload for the update_fail_malformed_htlc message.

public class UpdateFailMalformedHtlcPayload : IMessagePayload
Inheritance
UpdateFailMalformedHtlcPayload
Implements
Inherited Members

Remarks

Initializes a new instance of the UpdateFailMalformedHtlcPayload class.

Constructors

UpdateFailMalformedHtlcPayload(ChannelId, ushort, ulong, ReadOnlyMemory<byte>)

Represents the payload for the update_fail_malformed_htlc message.

public UpdateFailMalformedHtlcPayload(ChannelId channelId, ushort failureCode, ulong id, ReadOnlyMemory<byte> sha256OfOnion)

Parameters

channelId ChannelId
failureCode ushort
id ulong
sha256OfOnion ReadOnlyMemory<byte>

Remarks

Initializes a new instance of the UpdateFailMalformedHtlcPayload class.

Properties

ChannelId

The channel_id this message refers to

public ChannelId ChannelId { get; }

Property Value

ChannelId

FailureCode

The failure code

public ushort FailureCode { get; }

Property Value

ushort

Id

The htlc id

public ulong Id { get; }

Property Value

ulong

Sha256OfOnion

The sha256 of onion if an onion was received

public ReadOnlyMemory<byte> Sha256OfOnion { get; }

Property Value

ReadOnlyMemory<byte>

Remarks

May use an all zero array