Normalize scriptpubkeys to lowercase

This commit is contained in:
Mononaut
2023-08-10 18:45:17 +09:00
parent ccd9642a01
commit 77a526b91c

View File

@@ -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) {