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
CompactPubKeydustLimitAmount
LightningMoneyfirstPerCommitmentCompactPoint
CompactPubKeyfundingAmount
LightningMoneyfundingCompactPubKey
CompactPubKeyhtlcCompactBasepoint
CompactPubKeyhtlcMinimumAmount
LightningMoneymaxAcceptedHtlcs
ushortmaxHtlcValueInFlight
LightningMoneyminimumDepth
uintpaymentCompactBasepoint
CompactPubKeyrevocationCompactBasepoint
CompactPubKeychannelId
ChannelIdtoSelfDelay
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
DelayedPaymentCompactBasepoint
delayed_payment_basepoint is used to regenerate the scripts required for the penalty transaction
public CompactPubKey DelayedPaymentCompactBasepoint { get; }
Property Value
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
FirstPerCommitmentCompactPoint
first_per_commitment_point is the per-commitment point used for the first commitment transaction
public CompactPubKey FirstPerCommitmentCompactPoint { get; }
Property Value
FundingAmount
funding_satoshis is the amount the acceptor is putting into the channel.
public LightningMoney FundingAmount { get; }
Property Value
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
HtlcCompactBasepoint
htlc_basepoint is used to produce HTLC signatures for the protocol
public CompactPubKey HtlcCompactBasepoint { get; }
Property Value
HtlcMinimumAmount
htlc_minimum_msat indicates the smallest value HTLC this node will accept.
public LightningMoney HtlcMinimumAmount { get; }
Property Value
MaxAcceptedHtlcs
max_accepted_htlcs limits the number of outstanding HTLCs the remote node can offer.
public ushort MaxAcceptedHtlcs { get; }
Property Value
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
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
PaymentCompactBasepoint
payment_basepoint is used to produce payment signatures for the protocol
public CompactPubKey PaymentCompactBasepoint { get; }
Property Value
RevocationCompactBasepoint
revocation_basepoint is used to regenerate the scripts required for the penalty transaction
public CompactPubKey RevocationCompactBasepoint { get; }
Property Value
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; }