newblock feature to watch by txid, to be notified on fundchannel

This commit is contained in:
kexkey
2019-01-29 21:03:24 -05:00
committed by kexkey
parent 8017002069
commit c8480a071f
11 changed files with 358 additions and 7 deletions

View File

@@ -21,3 +21,16 @@ CREATE TABLE ln_invoice (
);
CREATE INDEX idx_lninvoice_label ON ln_invoice (label);
CREATE INDEX idx_lninvoice_bolt11 ON ln_invoice (bolt11);
CREATE TABLE watching_by_txid (
id INTEGER PRIMARY KEY AUTOINCREMENT,
txid TEXT UNIQUE,
watching INTEGER DEFAULT FALSE,
callback1conf TEXT,
calledback1conf INTEGER DEFAULT FALSE,
callbackxconf TEXT,
calledbackxconf INTEGER DEFAULT FALSE,
nbxconf INTEGER,
inserted_ts INTEGER DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX idx_watching_by_txid_txid ON watching_by_txid (txid);