fix: check all sigs

This commit is contained in:
2023-10-13 14:39:11 +01:00
parent 9251d5b90a
commit 87bb9dafeb
2 changed files with 6 additions and 2 deletions

View File

@ -179,7 +179,10 @@ export class NostrSystem extends ExternalStore<SystemSnapshot> implements System
}
#onEvent(sub: string, ev: TaggedNostrEvent) {
if (!EventExt.isValid(ev)) return;
if (!EventExt.isValid(ev)) {
this.#log("Rejecting invalid event %O", ev);
return;
}
for (const [, v] of this.Queries) {
v.handleEvent(sub, ev);