DotNetLightning


ChannelError Type

Union cases

Union case Description

APIMisuse string

Full Usage: APIMisuse string

Parameters:
    Item : string

Item : string

CanNotSignBeforeRevocation

Full Usage: CanNotSignBeforeRevocation

CannotCloseChannel msg

Full Usage: CannotCloseChannel msg

Parameters:
    msg : string

msg : string

CannotSignCommitmentBeforeRevocation

Full Usage: CannotSignCommitmentBeforeRevocation

CryptoError CryptoError

Full Usage: CryptoError CryptoError

Parameters:
Item : CryptoError

FundingTxNotGiven msg

Full Usage: FundingTxNotGiven msg

Parameters:
    msg : string

msg : string

HTLCAlreadySent HTLCId

Full Usage: HTLCAlreadySent HTLCId

Parameters:
Item : HTLCId

HTLCOriginNotKnown HTLCId

Full Usage: HTLCOriginNotKnown HTLCId

Parameters:
Item : HTLCId

InsufficientConfirmations(requiredDepth, currentDepth)

Full Usage: InsufficientConfirmations(requiredDepth, currentDepth)

Parameters:
requiredDepth : BlockHeightOffset32
currentDepth : BlockHeightOffset32
Item : InvalidAcceptChannelError

InvalidFailureCode FailureCode

Full Usage: InvalidFailureCode FailureCode

Parameters:
Item : FailureCode
Item : InvalidFundingLockedError
Item : InvalidOpenChannelError
Item : InvalidOperationAddHTLCError

InvalidPaymentPreimage(expectedHash, actualPreimage)

Full Usage: InvalidPaymentPreimage(expectedHash, actualPreimage)

Parameters:
expectedHash : PaymentHash
actualPreimage : PaymentPreimage
Item : InvalidRevokeAndACKError
Item : InvalidUpdateAddHTLCError
Item : InvalidUpdateFeeError

NoUpdatesToSign

Full Usage: NoUpdatesToSign

OnceConfirmedFundingTxHasBecomeUnconfirmed(height, depth)

Full Usage: OnceConfirmedFundingTxHasBecomeUnconfirmed(height, depth)

Parameters:
height : BlockHeight
depth : BlockHeightOffset32

ReceivedClosingSignedBeforeReceivingShutdown

Full Usage: ReceivedClosingSignedBeforeReceivingShutdown

Consumer of the api (usually, that is wallet) failed to give an funding tx

ReceivedClosingSignedBeforeSendingOrReceivingShutdown

Full Usage: ReceivedClosingSignedBeforeSendingOrReceivingShutdown

ReceivedClosingSignedBeforeSendingShutdown

Full Usage: ReceivedClosingSignedBeforeSendingShutdown

ReceivedCommitmentSignedWhenWeHaveNoPendingChanges

Full Usage: ReceivedCommitmentSignedWhenWeHaveNoPendingChanges

ReceivedShutdownWhenRemoteHasUnsignedOutgoingHTLCs msg

Full Usage: ReceivedShutdownWhenRemoteHasUnsignedOutgoingHTLCs msg

Parameters:

protocol violation defined in BOLT 02

msg : ShutdownMsg

RemoteProposedFeeOutOfNegotiatedRange(ourPreviousFee, theirPreviousFee, theirNextFee)

Full Usage: RemoteProposedFeeOutOfNegotiatedRange(ourPreviousFee, theirPreviousFee, theirNextFee)

Parameters:
ourPreviousFee : Money
theirPreviousFee : Money
theirNextFee : Money

RemoteProposedHigherFeeThanBaseFee(baseFee, proposedFee)

Full Usage: RemoteProposedHigherFeeThanBaseFee(baseFee, proposedFee)

Parameters:
baseFee : Money
proposedFee : Money

SignatureCountMismatch(expected, actual)

Full Usage: SignatureCountMismatch(expected, actual)

Parameters:
    expected : int
    actual : int

expected : int
actual : int

TheyCannotAffordFee(toRemote, fee, channelReserve)

Full Usage: TheyCannotAffordFee(toRemote, fee, channelReserve)

Parameters:

When we create the first commitment txs as fundee, There might be a case that their initial funding amount is too low that it cannot afford fee

toRemote : LNMoney
fee : Money
channelReserve : Money

TransactionRelatedErrors TransactionError list

Full Usage: TransactionRelatedErrors TransactionError list

Parameters:
Item : TransactionError list

UnknownHTLCId HTLCId

Full Usage: UnknownHTLCId HTLCId

Parameters:
Item : HTLCId

WeCannotAffordFee(localChannelReserve, requiredFee, missingAmount)

Full Usage: WeCannotAffordFee(localChannelReserve, requiredFee, missingAmount)

Parameters:
localChannelReserve : Money
requiredFee : Money
missingAmount : Money

Instance members

Instance member Description

this.Message

Full Usage: this.Message

Returns: string
Returns: string

this.RecommendedAction

Full Usage: this.RecommendedAction

Returns: ChannelConsumerAction
Returns: ChannelConsumerAction