Merge pull request #224 from matiu/bug/tx-time-0

fix zero time txs
This commit is contained in:
Matias Alejo Garcia 2014-02-10 19:00:27 -02:00
commit dafb4bccf1
1 changed files with 1 additions and 1 deletions

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