Table of Contents

Class AcceptChannel1Payload

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

Represents the payload for the accept_channel message.

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

Remarks

Initializes a new instance of the AcceptChannel1Payload class.

Constructors

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

public AcceptChannel1Payload(ChannelId channelId, LightningMoney channelReserveAmount, CompactPubKey delayedPaymentBasepoint, LightningMoney dustLimitAmount, CompactPubKey firstPerCommitmentPoint, CompactPubKey fundingPubKey, CompactPubKey htlcBasepoint, LightningMoney htlcMinimumAmount, ushort maxAcceptedHtlcs, LightningMoney maxHtlcValueInFlight, uint minimumDepth, CompactPubKey paymentBasepoint, CompactPubKey revocationBasepoint, ushort toSelfDelay)

Parameters

channelId ChannelId
channelReserveAmount LightningMoney
delayedPaymentBasepoint CompactPubKey
dustLimitAmount LightningMoney
firstPerCommitmentPoint CompactPubKey
fundingPubKey CompactPubKey
htlcBasepoint CompactPubKey
htlcMinimumAmount LightningMoney
maxAcceptedHtlcs ushort
maxHtlcValueInFlight LightningMoney
minimumDepth uint
paymentBasepoint CompactPubKey
revocationBasepoint CompactPubKey
toSelfDelay ushort

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; set; }

Property Value

ChannelId

ChannelReserveAmount

channel_reserve_satoshis is the amount the acceptor is reserving for the channel, which is not available for spending

public LightningMoney ChannelReserveAmount { get; set; }

Property Value

LightningMoney

DelayedPaymentBasepoint

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

public CompactPubKey DelayedPaymentBasepoint { get; set; }

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

FirstPerCommitmentPoint

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

public CompactPubKey FirstPerCommitmentPoint { get; set; }

Property Value

CompactPubKey

FundingPubKey

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

public CompactPubKey FundingPubKey { get; set; }

Property Value

CompactPubKey

HtlcBasepoint

htlc_basepoint is used to produce HTLC signatures for the protocol

public CompactPubKey HtlcBasepoint { get; set; }

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; set; }

Property Value

uint

PaymentBasepoint

payment_basepoint is used to produce payment signatures for the protocol

public CompactPubKey PaymentBasepoint { get; set; }

Property Value

CompactPubKey

RevocationBasepoint

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

public CompactPubKey RevocationBasepoint { get; set; }

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