WIP
This commit is contained in:
parent
808a8ab4a4
commit
c4e557e86d
3 changed files with 4 additions and 2 deletions
|
|
@ -464,7 +464,7 @@ function monitorLiveIncoming () {
|
||||||
}
|
}
|
||||||
|
|
||||||
function monitorIncoming () {
|
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) {
|
db.fetchOpenTxs(statuses, STALE_INCOMING_TX_AGE, function (err, txs) {
|
||||||
if (err) return
|
if (err) return
|
||||||
txs.forEach(processTxStatus)
|
txs.forEach(processTxStatus)
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ var db = require('./db')
|
||||||
function singleQuotify (item) { return '\'' + item + '\'' }
|
function singleQuotify (item) { return '\'' + item + '\'' }
|
||||||
|
|
||||||
exports.up = function (next) {
|
exports.up = function (next) {
|
||||||
var statuses = ['notSeen', 'published', 'authorized', 'confirmed', 'rejected']
|
var statuses = ['notSeen', 'published', 'zeroConf', 'authorized', 'confirmed', 'rejected']
|
||||||
.map(singleQuotify).join(',')
|
.map(singleQuotify).join(',')
|
||||||
|
|
||||||
var sql = [
|
var sql = [
|
||||||
|
|
|
||||||
2
todo.txt
2
todo.txt
|
|
@ -3,3 +3,5 @@
|
||||||
- pull all unconfirmed txs
|
- pull all unconfirmed txs
|
||||||
- for each tx: poll wallet plugin to check status
|
- for each tx: poll wallet plugin to check status
|
||||||
- update db
|
- update db
|
||||||
|
|
||||||
|
- translate back and forth between db fields and json fields of tx
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue