From 0ce6eaca22178ef9b257b95fcf240a777924aedb Mon Sep 17 00:00:00 2001 From: gsovereignty Date: Sat, 20 Apr 2024 17:46:52 +1200 Subject: [PATCH] problem: not validating sigs --- src/lib/snort_workers/fetch_events.ts | 2 +- src/lib/snort_workers/live_subs.ts | 2 +- src/lib/snort_workers/master_worker.ts | 2 +- src/lib/views/messages/snort.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/snort_workers/fetch_events.ts b/src/lib/snort_workers/fetch_events.ts index b12237c..a70f661 100644 --- a/src/lib/snort_workers/fetch_events.ts +++ b/src/lib/snort_workers/fetch_events.ts @@ -25,7 +25,7 @@ let count = 0 async function start(eventIDs: string[]) { return new Promise((resolve, reject) => { const sys = new NostrSystem({ - checkSigs: false //todo: check sigs JIT on rendering + checkSigs: true //todo: check sigs JIT on rendering // automaticOutboxModel: true, // buildFollowGraph: true, }); diff --git a/src/lib/snort_workers/live_subs.ts b/src/lib/snort_workers/live_subs.ts index 9f2ab44..7ce0743 100644 --- a/src/lib/snort_workers/live_subs.ts +++ b/src/lib/snort_workers/live_subs.ts @@ -25,7 +25,7 @@ let count = 0 async function start(pubkeys: string[]) { return new Promise((resolve, reject) => { const sys = new NostrSystem({ - checkSigs: false //todo: check sigs JIT on rendering + checkSigs: true //todo: check sigs JIT on rendering // automaticOutboxModel: true, // buildFollowGraph: true, }); diff --git a/src/lib/snort_workers/master_worker.ts b/src/lib/snort_workers/master_worker.ts index 3e93d73..90dca07 100644 --- a/src/lib/snort_workers/master_worker.ts +++ b/src/lib/snort_workers/master_worker.ts @@ -9,7 +9,7 @@ let workerData = new WorkerData(); let workerDataStore = writable(workerData); const sys = new NostrSystem({ - checkSigs: false + checkSigs: true // automaticOutboxModel: true, // buildFollowGraph: true, }); diff --git a/src/lib/views/messages/snort.ts b/src/lib/views/messages/snort.ts index e5c8776..a1799d5 100644 --- a/src/lib/views/messages/snort.ts +++ b/src/lib/views/messages/snort.ts @@ -2,7 +2,7 @@ import { seedRelays } from "@/snort_workers/seed_relays"; import { NostrSystem, type QueryLike } from "@snort/system"; import { writable } from "svelte/store"; -export const System = new NostrSystem({}); +export const System = new NostrSystem({checkSigs: true}); let started = false; export async function init() {