Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUninitializedDB signals that top-level buckets for the database // have not been initialized. ErrUninitializedDB = errors.New("db not initialized") // ErrCorruptChanSummary signals that the clients channel summary's // on-disk structure deviates from what is expected. ErrCorruptChanSummary = errors.New("channel summary corrupted") )
Functions ¶
func MigrateClientChannelDetails ¶
MigrateClientChannelDetails creates a new channel-details bucket that uses channel IDs as sub-buckets where the channel summaries are moved to from the channel summary bucket. If the migration is successful then the channel summary bucket is deleted.
Types ¶
type ChannelID ¶
type ChannelID [32]byte
ChannelID is a series of 32-bytes that uniquely identifies all channels within the network. The ChannelID is computed using the outpoint of the funding transaction (the txid, and output index). Given a funding output the ChannelID can be calculated by XOR'ing the big-endian serialization of the txid and the big-endian serialization of the output index, truncated to 2 bytes.
Click to show internal directories.
Click to hide internal directories.