From d712dc99bbd9f74151db871a25c8fa59982bec15 Mon Sep 17 00:00:00 2001 From: smolgrrr Date: Wed, 28 Aug 2024 13:46:11 +1000 Subject: [PATCH] fix this fucking stupid prefix filter --- client/src/utils/subscriptions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/utils/subscriptions.ts b/client/src/utils/subscriptions.ts index b4d7784..e1cee58 100644 --- a/client/src/utils/subscriptions.ts +++ b/client/src/utils/subscriptions.ts @@ -13,7 +13,7 @@ export const subGlobalFeed = (onEvent: SubCallback, age: number) => { const now = Math.floor(Date.now() * 0.001); const pubkeys = new Set(); const notes = new Set(); - const prefix = 6; // 4 bits in each '0' character + const prefix = 4; // 4 bits in each '0' character sub({ // get past events cb: (evt, relay) => { pubkeys.add(evt.pubkey); @@ -300,7 +300,7 @@ export const subHashtagFeed = ( unsub: true }); - const prefix = 6; // 4 bits in each '0' character + const prefix = 4; // 4 bits in each '0' character sub({ // get past events cb: (evt, relay) => { pubkeys.add(evt.pubkey);