From 0bf384b84aa7312056f09cabf2b5fbc4d70b4ef3 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 20 Oct 2016 07:52:34 -0700 Subject: [PATCH] txdb: fix fillHistory. --- lib/wallet/txdb.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/wallet/txdb.js b/lib/wallet/txdb.js index 8e118b70..55d2f78d 100644 --- a/lib/wallet/txdb.js +++ b/lib/wallet/txdb.js @@ -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;