Table of Contents

Class AcceptChannel2Payload

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

Represents the payload for the accept_channel2 message.

public class AcceptChannel2Payload : IChannelMessagePayload, IMessagePayload
Inheritance
AcceptChannel2Payload
Implements
Inherited Members

Remarks

Initializes a new instance of the AcceptChannel2Payload class.

Constructors

AcceptChannel2Payload(CompactPubKey, LightningMoney, CompactPubKey, LightningMoney, CompactPubKey, CompactPubKey, LightningMoney, ushort, LightningMoney, uint, CompactPubKey, CompactPubKey, ChannelId, ushort)

Represents the payload for the accept_channel2 message.

public AcceptChannel2Payload(CompactPubKey delayedPaymentCompactBasepoint, LightningMoney dustLimitAmount, CompactPubKey firstPerCommitmentCompactPoint, LightningMoney fundingAmount, CompactPubKey fundingCompactPubKey, CompactPubKey htlcCompactBasepoint, LightningMoney htlcMinimumAmount, ushort maxAcceptedHtlcs, LightningMoney maxHtlcValueInFlight, uint minimumDepth, CompactPubKey paymentCompactBasepoint, CompactPubKey revocationCompactBasepoint, ChannelId channelId, ushort toSelfDelay)

Parameters

delayedPaymentCompactBasepoint CompactPubKey
dustLimitAmount LightningMoney
firstPerCommitmentCompactPoint CompactPubKey
fundingAmount LightningMoney
fundingCompactPubKey CompactPubKey
htlcCompactBasepoint CompactPubKey
htlcMinimumAmount LightningMoney
maxAcceptedHtlcs ushort
maxHtlcValueInFlight LightningMoney
minimumDepth uint
paymentCompactBasepoint CompactPubKey
revocationCompactBasepoint CompactPubKey
channelId ChannelId
toSelfDelay ushort

Remarks

Initializes a new instance of the AcceptChannel2Payload class.

Properties

ChannelId

The temporary_channel_id is used to identify this channel on a per-peer basis until the funding transaction is established, at which point it is replaced by the channel_id, which is derived from the funding transaction.

public ChannelId ChannelId { get; }

Property Value

ChannelId

DelayedPaymentCompactBasepoint

delayed_payment_basepoint is used to regenerate the scripts required for the penalty transaction

public CompactPubKey DelayedPaymentCompactBasepoint { get; }

Property Value

CompactPubKey

DustLimitAmount

dust_limit_satoshis is the threshold below which outputs should not be generated for this node's commitment or HTLC transactions

public LightningMoney DustLimitAmount { get; }

Property Value

LightningMoney

FirstPerCommitmentCompactPoint

first_per_commitment_point is the per-commitment point used for the first commitment transaction

public CompactPubKey FirstPerCommitmentCompactPoint { get; }

Property Value

CompactPubKey

FundingAmount

funding_satoshis is the amount the acceptor is putting into the channel.

public LightningMoney FundingAmount { get; }

Property Value

LightningMoney

FundingCompactPubKey

funding_pubkey is the public key in the 2-of-2 multisig script of the funding transaction output.

public CompactPubKey FundingCompactPubKey { get; }

Property Value

CompactPubKey

HtlcCompactBasepoint

htlc_basepoint is used to produce HTLC signatures for the protocol

public CompactPubKey HtlcCompactBasepoint { get; }

Property Value

CompactPubKey

HtlcMinimumAmount

htlc_minimum_msat indicates the smallest value HTLC this node will accept.

public LightningMoney HtlcMinimumAmount { get; }

Property Value

LightningMoney

MaxAcceptedHtlcs

max_accepted_htlcs limits the number of outstanding HTLCs the remote node can offer.

public ushort MaxAcceptedHtlcs { get; }

Property Value

ushort

MaxHtlcValueInFlightAmount

max_htlc_value_in_flight_msat is a cap on total value of outstanding HTLCs offered by the remote node, which allows the local node to limit its exposure to HTLCs

public LightningMoney MaxHtlcValueInFlightAmount { get; }

Property Value

LightningMoney

MinimumDepth

minimum_depth is the number of blocks we consider reasonable to avoid double-spending of the funding transaction. In case channel_type includes option_zeroconf this MUST be 0

public uint MinimumDepth { get; }

Property Value

uint

PaymentCompactBasepoint

payment_basepoint is used to produce payment signatures for the protocol

public CompactPubKey PaymentCompactBasepoint { get; }

Property Value

CompactPubKey

RevocationCompactBasepoint

revocation_basepoint is used to regenerate the scripts required for the penalty transaction

public CompactPubKey RevocationCompactBasepoint { get; }

Property Value

CompactPubKey

ToSelfDelay

to_self_delay is how long (in blocks) the other node will have to wait in case of breakdown before redeeming its own funds.

public ushort ToSelfDelay { get; }

Property Value

ushort