From 73e61e864af79d9192dd8afa6e53ddc9d36de951 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 8 Jul 2017 19:06:11 -0700 Subject: [PATCH] chaindb: minor. --- lib/blockchain/chaindb.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/blockchain/chaindb.js b/lib/blockchain/chaindb.js index 61084286..beec2e93 100644 --- a/lib/blockchain/chaindb.js +++ b/lib/blockchain/chaindb.js @@ -1255,9 +1255,7 @@ ChainDB.prototype.scan = async function scan(start, filter, iter) { if (tx.isCoinbase()) continue; - for (let input of tx.inputs) { - let prevout = input.prevout; - + for (let {prevout} of tx.inputs) { if (filter.test(prevout.toRaw())) { txs.push(tx); break;