From 2ac7a5b675d16b4956622d5fd186d8a38ea7a114 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Mon, 10 Feb 2014 17:59:18 -0300 Subject: [PATCH] fix zero time txs --- lib/TransactionDb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TransactionDb.js b/lib/TransactionDb.js index e5ac6ee..3f04331 100644 --- a/lib/TransactionDb.js +++ b/lib/TransactionDb.js @@ -380,7 +380,7 @@ function spec(b) { async.forEachLimit(tx.vin, CONCURRENCY, function(i, next_out) { db.batch() - .put( SPEND_PREFIX + i.txid + '-' + i.vout + '-' + tx.txid + '-' + i.n, ts) + .put( SPEND_PREFIX + i.txid + '-' + i.vout + '-' + tx.txid + '-' + i.n, ts || 0) .write(next_out); }, function (err) {