From 77a526b91cf13aad8cb17a48bd4be44669be13dc Mon Sep 17 00:00:00 2001 From: Mononaut Date: Thu, 10 Aug 2023 18:45:17 +0900 Subject: [PATCH] Normalize scriptpubkeys to lowercase --- backend/src/api/websocket-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/websocket-handler.ts b/backend/src/api/websocket-handler.ts index f48edf11e..3391cdc0b 100644 --- a/backend/src/api/websocket-handler.ts +++ b/backend/src/api/websocket-handler.ts @@ -228,7 +228,7 @@ class WebsocketHandler { const spks: string[] = []; for (const spk of parsedMessage['track-scriptpubkeys']) { if (/^[a-fA-F0-9]+$/.test(spk)) { - spks.push(spk); + spks.push(spk.toLowerCase()); } } if (spks.length) {