mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 09:04:25 +01:00
wallet: Added database schema for shachain persistence
This commit is contained in:
committed by
Rusty Russell
parent
28cc92cd15
commit
b0c64909e7
11
wallet/db.c
11
wallet/db.c
@@ -25,6 +25,17 @@ char *dbmigrations[] = {
|
||||
PRIMARY KEY (prev_out_tx, prev_out_index) \
|
||||
);",
|
||||
"CREATE TABLE vars (name VARCHAR(32), val VARCHAR(255), PRIMARY KEY (name));",
|
||||
"CREATE TABLE shachains ( \
|
||||
id INTEGER, \
|
||||
min_index INTEGER, \
|
||||
num_valid INTEGER, \
|
||||
PRIMARY KEY (id));",
|
||||
"CREATE TABLE shachain_known ( \
|
||||
shachain_id INTEGER, \
|
||||
pos INTEGER, \
|
||||
idx INTEGER, \
|
||||
hash BLOB, \
|
||||
PRIMARY KEY (shachain_id, pos));",
|
||||
NULL,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user