txdb: fix fillHistory.

This commit is contained in:
Christopher Jeffrey 2016-10-20 07:52:34 -07:00
parent de18e92117
commit 0bf384b84a
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -2215,8 +2215,10 @@ TXDB.prototype.fillHistory = co(function* fillHistory(tx) {
input = tx.inputs[i];
credit = credits[i];
if (!credit)
if (!credit) {
coins.push(null);
continue;
}
input.coin = credit.coin;