txdb: add assert.

This commit is contained in:
Christopher Jeffrey 2016-10-09 23:15:18 -07:00
parent 2af685ec1f
commit 24cf42e6bf
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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;