Batchers manage batches

This commit is contained in:
kexkey
2020-07-03 13:42:32 -04:00
parent 3efdd200d4
commit 38819f169d
7 changed files with 336 additions and 336 deletions

View File

@@ -68,20 +68,20 @@ CREATE TABLE recipient (
webhook_url TEXT,
calledback INTEGER DEFAULT FALSE,
calledback_ts INTEGER,
batch_id INTEGER REFERENCES batch,
label TEXT,
batcher_id INTEGER REFERENCES batcher,
label TEXT
);
CREATE INDEX idx_recipient_address ON recipient (address);
CREATE INDEX idx_recipient_label ON recipient (label);
CREATE TABLE batch (
CREATE TABLE batcher (
id INTEGER PRIMARY KEY AUTOINCREMENT,
label TEXT UNIQUE,
conf_target INTEGER,
feerate REAL,
inserted_ts INTEGER DEFAULT CURRENT_TIMESTAMP
);
INSERT INTO batch (id, label, conf_target, feerate) VALUES (1, "default", 6, NULL);
INSERT INTO batcher (id, label, conf_target, feerate) VALUES (1, "default", 6, NULL);
CREATE TABLE watching_by_txid (
id INTEGER PRIMARY KEY AUTOINCREMENT,