node-http: require filter to scan

This commit is contained in:
Matthew Zipkin 2019-03-26 10:17:10 -07:00
parent 2b2e53d83d
commit 11d70432b3
No known key found for this signature in database
GPG Key ID: E7E2984B6289C93A

View File

@ -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 = [];