From 11d70432b3f1fd13875124dd0871a262adb7232c Mon Sep 17 00:00:00 2001 From: Matthew Zipkin Date: Tue, 26 Mar 2019 10:17:10 -0700 Subject: [PATCH] node-http: require filter to scan --- lib/node/http.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/node/http.js b/lib/node/http.js index 98279d96..dc25f8ff 100644 --- a/lib/node/http.js +++ b/lib/node/http.js @@ -655,6 +655,9 @@ class HTTP extends Server { */ async scan(socket, start) { + if (!socket.filter) + return null; + await this.node.scan(start, socket.filter, (entry, txs) => { const block = entry.toRaw(); const raw = [];