txdb: fix verify for orphans.
This commit is contained in:
parent
605874068b
commit
212c1a3430
@ -544,8 +544,11 @@ TXDB.prototype.verify = co(function* verify(tx, info) {
|
||||
// We must be double-spending.
|
||||
coin = yield this.getSpentCoin(spent, prevout);
|
||||
|
||||
if (!coin)
|
||||
throw new Error('Could not find double-spent coin.');
|
||||
// Double-spent orphan.
|
||||
if (!coin) {
|
||||
orphans[i] = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
input.coin = coin;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user