ChannelUpdate

data class ChannelUpdate(signature: ByteVector64, chainHash: ByteVector32, shortChannelId: ShortChannelId, timestampSeconds: Long, messageFlags: Byte, channelFlags: Byte, cltvExpiryDelta: CltvExpiryDelta, htlcMinimumMsat: MilliSatoshi, feeBaseMsat: MilliSatoshi, feeProportionalMillionths: Long, htlcMaximumMsat: MilliSatoshi?, unknownFields: ByteVector) : AnnouncementMessage, HasTimestamp, HasChainHash

Types

Companion
Link copied to clipboard
common
object Companion : LightningMessageReader<ChannelUpdate>

Functions

isEnabled
Link copied to clipboard
common
fun isEnabled(): Boolean

BOLT 7: A node MAY create and send a channel_update with the disable bit set to signal the temporary unavailability of a channel

isNode1
Link copied to clipboard
common
fun isNode1(): Boolean

BOLT 7: The creating node ... MUST set the direction bit of flags to 0 if the creating node is node-id-1 in that message, otherwise 1.

isRemote
Link copied to clipboard
common
fun isRemote(localNodeId: PublicKey, remoteNodeId: PublicKey): Boolean
write
Link copied to clipboard
common
open fun write(): ByteArray
open override fun write(out: Output)

Properties

chainHash
Link copied to clipboard
common
open override val chainHash: ByteVector32
channelFlags
Link copied to clipboard
common
val channelFlags: Byte
cltvExpiryDelta
Link copied to clipboard
common
val cltvExpiryDelta: CltvExpiryDelta
feeBaseMsat
Link copied to clipboard
common
val feeBaseMsat: MilliSatoshi
feeProportionalMillionths
Link copied to clipboard
common
val feeProportionalMillionths: Long
htlcMaximumMsat
Link copied to clipboard
common
val htlcMaximumMsat: MilliSatoshi?
htlcMinimumMsat
Link copied to clipboard
common
val htlcMinimumMsat: MilliSatoshi
messageFlags
Link copied to clipboard
common
val messageFlags: Byte
shortChannelId
Link copied to clipboard
common
val shortChannelId: ShortChannelId
signature
Link copied to clipboard
common
val signature: ByteVector64
timestampSeconds
Link copied to clipboard
common
open override val timestampSeconds: Long
type
Link copied to clipboard
common
open override val type: Long

Once decrypted, lightning messages start with a 2-byte type that uniquely identifies the kind of message received. See https://github.com/lightningnetwork/lightning-rfc/blob/master/01-messaging.md#lightning-message-format.

unknownFields
Link copied to clipboard
common
val unknownFields: ByteVector