InMemoryChannelsDb

class InMemoryChannelsDb : ChannelsDb

Functions

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