From c4e557e86d40a345166d4dc377651f1733fd0b61 Mon Sep 17 00:00:00 2001 From: Josh Harvey Date: Sun, 8 May 2016 01:23:03 +0300 Subject: [PATCH] WIP --- lib/plugins.js | 2 +- migrations/008-add-two-way.js | 2 +- todo.txt | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/plugins.js b/lib/plugins.js index 363c2e5f..61b6b4dc 100644 --- a/lib/plugins.js +++ b/lib/plugins.js @@ -464,7 +464,7 @@ function monitorLiveIncoming () { } function monitorIncoming () { - const statuses = ['notSeen', 'published', 'authorized', 'rejected'] + const statuses = ['notSeen', 'published', 'zeroConf', 'authorized', 'rejected'] db.fetchOpenTxs(statuses, STALE_INCOMING_TX_AGE, function (err, txs) { if (err) return txs.forEach(processTxStatus) diff --git a/migrations/008-add-two-way.js b/migrations/008-add-two-way.js index c8c1d6a8..f74d8f7c 100644 --- a/migrations/008-add-two-way.js +++ b/migrations/008-add-two-way.js @@ -3,7 +3,7 @@ var db = require('./db') function singleQuotify (item) { return '\'' + item + '\'' } exports.up = function (next) { - var statuses = ['notSeen', 'published', 'authorized', 'confirmed', 'rejected'] + var statuses = ['notSeen', 'published', 'zeroConf', 'authorized', 'confirmed', 'rejected'] .map(singleQuotify).join(',') var sql = [ diff --git a/todo.txt b/todo.txt index 0ff41731..c4f0436d 100644 --- a/todo.txt +++ b/todo.txt @@ -3,3 +3,5 @@ - pull all unconfirmed txs - for each tx: poll wallet plugin to check status - update db + +- translate back and forth between db fields and json fields of tx