From 24cf42e6bf4334090373fdfaa3b75e23e52c3fc6 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 9 Oct 2016 23:15:18 -0700 Subject: [PATCH] txdb: add assert. --- lib/wallet/txdb.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/wallet/txdb.js b/lib/wallet/txdb.js index c7dfd32b..6d24e5e7 100644 --- a/lib/wallet/txdb.js +++ b/lib/wallet/txdb.js @@ -1681,6 +1681,7 @@ TXDB.prototype.fillHistory = function fillHistory(tx) { var index = layout.dd(key)[1]; var coin = Coin.fromRaw(value); var input = tx.inputs[index]; + assert(input); coin.hash = input.prevout.hash; coin.index = input.prevout.index; input.coin = coin;