Expand description
Persistent channel storage for MPP sessions.
Stores open payment channel state in a SQLite database at
$TEMPO_HOME/channels.db (default: ~/.tempo/channels.db).
This allows channel reuse across process invocations, avoiding the cost of
opening a new on-chain channel for every cast / forge command.
Functionsยง
- channel_
key_ ๐from_ persisted - Reconstruct the composite HashMap key from a persisted
Channel. - delete_
channel_ from_ db - Delete a channel from the database by its channel ID.
- find_
channel - Look up a usable persisted channel by key.
- from_
channel_ entry - Create a
Channelfrom aChannelEntrywith metadata. - global_
db ๐ - Process-wide database handle.
- is_
usable ๐ - Whether a channel can still be used (active and not fully spent).
- load_
channels - Load channels from database, evicting spent/inactive entries.
- save_
channels - Save channels to database.
- to_
channel_ entry - Convert a persisted
Channelto aChannelEntry. - upsert_
channel_ in_ memory - Insert or update a channel entry in memory only (no DB write).