txdb: add assert.
This commit is contained in:
parent
2af685ec1f
commit
24cf42e6bf
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user