Announcements

object Announcements

Functions

disableChannel
Link copied to clipboard
common
fun disableChannel(channelUpdate: ChannelUpdate, nodePrivateKey: PrivateKey, remoteNodeId: PublicKey): ChannelUpdate
enableChannel
Link copied to clipboard
common
fun enableChannel(channelUpdate: ChannelUpdate, nodePrivateKey: PrivateKey, remoteNodeId: PublicKey): ChannelUpdate
isNode1
Link copied to clipboard
common
fun isNode1(localNodeId: PublicKey, remoteNodeId: PublicKey): Boolean

BOLT 7: The creating node MUST set node-id-1 and node-id-2 to the public keys of the two nodes who are operating the channel, such that node-id-1 is the numerically-lesser of the two DER encoded keys sorted in ascending numerical order,

makeChannelFlags
Link copied to clipboard
common
fun makeChannelFlags(isNode1: Boolean, enable: Boolean): Byte
makeChannelUpdate
Link copied to clipboard
common
fun makeChannelUpdate(chainHash: ByteVector32, nodePrivateKey: PrivateKey, remoteNodeId: PublicKey, shortChannelId: ShortChannelId, cltvExpiryDelta: CltvExpiryDelta, htlcMinimum: MilliSatoshi, feeBase: MilliSatoshi, feeProportionalMillionths: Long, htlcMaximum: MilliSatoshi, enable: Boolean = true, timestampSeconds: Long = currentTimestampSeconds()): ChannelUpdate