validate events on receive
This commit is contained in:
@ -18,6 +18,7 @@ import {
|
||||
RelayMetricCache,
|
||||
UsersRelays,
|
||||
SnortSystemDb,
|
||||
EventExt,
|
||||
} from ".";
|
||||
import { EventsCache } from "./cache/events";
|
||||
import { RelayCache } from "./gossip-model";
|
||||
@ -178,6 +179,8 @@ export class NostrSystem extends ExternalStore<SystemSnapshot> implements System
|
||||
}
|
||||
|
||||
#onEvent(sub: string, ev: TaggedNostrEvent) {
|
||||
if (!EventExt.isValid(ev)) return;
|
||||
|
||||
for (const [, v] of this.Queries) {
|
||||
v.handleEvent(sub, ev);
|
||||
}
|
||||
|
Reference in New Issue
Block a user