sqldb: closed_scids table

This commit is contained in:
Elle Mouton
2025-06-11 17:53:34 +02:00
parent d46552f5ad
commit 5effa96766
3 changed files with 10 additions and 0 deletions

View File

@ -29,3 +29,4 @@ DROP TABLE IF EXISTS nodes;
DROP TABLE IF EXISTS channel_policy_extra_types;
DROP TABLE IF EXISTS zombie_channels;
DROP TABLE IF EXISTS prune_log;
DROP TABLE IF EXISTS closed_scids;

View File

@ -332,3 +332,8 @@ CREATE TABLE IF NOT EXISTS prune_log (
-- The block hash that the prune was performed at.
block_hash BLOB NOT NULL
);
CREATE TABLE IF NOT EXISTS closed_scids (
-- The short channel id of the channel.
scid BLOB PRIMARY KEY
);

View File

@ -78,6 +78,10 @@ type ChannelPolicyExtraType struct {
Value []byte
}
type ClosedScid struct {
Scid []byte
}
type Invoice struct {
ID int64
Hash []byte