Normalize scriptpubkeys to lowercase
This commit is contained in:
parent
ccd9642a01
commit
77a526b91c
@ -228,7 +228,7 @@ class WebsocketHandler {
|
|||||||
const spks: string[] = [];
|
const spks: string[] = [];
|
||||||
for (const spk of parsedMessage['track-scriptpubkeys']) {
|
for (const spk of parsedMessage['track-scriptpubkeys']) {
|
||||||
if (/^[a-fA-F0-9]+$/.test(spk)) {
|
if (/^[a-fA-F0-9]+$/.test(spk)) {
|
||||||
spks.push(spk);
|
spks.push(spk.toLowerCase());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (spks.length) {
|
if (spks.length) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user