mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-01 12:05:22 +01:00
First pass of LN payment callbacks
This commit is contained in:
@@ -87,3 +87,16 @@ CREATE TABLE cyphernode_props (
|
||||
CREATE INDEX idx_cp_property ON cyphernode_props (property);
|
||||
|
||||
INSERT INTO cyphernode_props (property, value) VALUES ("version", "0.1");
|
||||
INSERT INTO cyphernode_props (property, value) VALUES ("pay_index", "0");
|
||||
|
||||
CREATE TABLE ln_invoice (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
bolt11 TEXT UNIQUE,
|
||||
status TEXT,
|
||||
callback_url TEXT,
|
||||
calledback INTEGER DEFAULT FALSE,
|
||||
callback_failed INTEGER DEFAULT FALSE,
|
||||
inserted_ts INTEGER DEFAULT CURRENT_TIMESTAMP
|
||||
)
|
||||
CREATE INDEX idx_lninvoice_bolt11 ON ln_invoice (bolt11);
|
||||
CREATE INDEX idx_lninvoice_status ON ln_invoice (status);
|
||||
|
||||
Reference in New Issue
Block a user