ChannelsDb

interface ChannelsDb

Functions

addHtlcInfo
Link copied to clipboard
common
abstract suspend fun addHtlcInfo(channelId: ByteVector32, commitmentNumber: Long, paymentHash: ByteVector32, cltvExpiry: CltvExpiry)
addOrUpdateChannel
Link copied to clipboard
common
abstract suspend fun addOrUpdateChannel(state: ChannelStateWithCommitments)
close
Link copied to clipboard
common
abstract fun close()
listHtlcInfos
Link copied to clipboard
common
abstract suspend fun listHtlcInfos(channelId: ByteVector32, commitmentNumber: Long): List<Pair<ByteVector32, CltvExpiry>>
listLocalChannels
Link copied to clipboard
common
abstract suspend fun listLocalChannels(): List<ChannelStateWithCommitments>
removeChannel
Link copied to clipboard
common
abstract suspend fun removeChannel(channelId: ByteVector32)

Inheritors

InMemoryChannelsDb
Link copied to clipboard