fix zero time txs

This commit is contained in:
Matias Alejo Garcia 2014-02-10 17:59:18 -03:00
parent 340153c629
commit 2ac7a5b675

View File

@ -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) {