Warning

data class Warning(channelId: ByteVector32, data: ByteVector) : SetupMessage, HasChannelId

Constructors

Warning
Link copied to clipboard
common
fun Warning(channelId: ByteVector32, message: String?)
Warning
Link copied to clipboard
common
fun Warning(message: String?)

Types

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

Functions

toAscii
Link copied to clipboard
common
fun toAscii(): String
write
Link copied to clipboard
common
open fun write(): ByteArray
open override fun write(out: Output)

Properties

channelId
Link copied to clipboard
common
open override val channelId: ByteVector32
data
Link copied to clipboard
common
val data: ByteVector
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.