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
ChannelIdchannelReserveAmount
LightningMoneydelayedPaymentBasepoint
CompactPubKeydustLimitAmount
LightningMoneyfirstPerCommitmentPoint
CompactPubKeyfundingPubKey
CompactPubKeyhtlcBasepoint
CompactPubKeyhtlcMinimumAmount
LightningMoneymaxAcceptedHtlcs
ushortmaxHtlcValueInFlight
LightningMoneyminimumDepth
uintpaymentBasepoint
CompactPubKeyrevocationBasepoint
CompactPubKeytoSelfDelay
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
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
DelayedPaymentBasepoint
delayed_payment_basepoint is used to regenerate the scripts required for the penalty transaction
public CompactPubKey DelayedPaymentBasepoint { get; set; }
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
FirstPerCommitmentPoint
first_per_commitment_point is the per-commitment point used for the first commitment transaction
public CompactPubKey FirstPerCommitmentPoint { get; set; }
Property Value
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
HtlcBasepoint
htlc_basepoint is used to produce HTLC signatures for the protocol
public CompactPubKey HtlcBasepoint { get; set; }
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; set; }
Property Value
PaymentBasepoint
payment_basepoint is used to produce payment signatures for the protocol
public CompactPubKey PaymentBasepoint { get; set; }
Property Value
RevocationBasepoint
revocation_basepoint is used to regenerate the scripts required for the penalty transaction
public CompactPubKey RevocationBasepoint { get; set; }
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; }