node-http: require filter to scan
This commit is contained in:
parent
2b2e53d83d
commit
11d70432b3
@ -655,6 +655,9 @@ class HTTP extends Server {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
async scan(socket, start) {
|
async scan(socket, start) {
|
||||||
|
if (!socket.filter)
|
||||||
|
return null;
|
||||||
|
|
||||||
await this.node.scan(start, socket.filter, (entry, txs) => {
|
await this.node.scan(start, socket.filter, (entry, txs) => {
|
||||||
const block = entry.toRaw();
|
const block = entry.toRaw();
|
||||||
const raw = [];
|
const raw = [];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user