Ignore case on coinbase tag regexes

This commit is contained in:
nymkappa 2022-04-22 03:25:34 -04:00
parent e8d6872620
commit 0860e16b2b
No known key found for this signature in database
GPG key ID: E155910B16E8BD04

View file

@ -179,7 +179,8 @@ class Blocks {
const regexes: string[] = JSON.parse(pools[i].regexes); const regexes: string[] = JSON.parse(pools[i].regexes);
for (let y = 0; y < regexes.length; ++y) { for (let y = 0; y < regexes.length; ++y) {
const match = asciiScriptSig.match(regexes[y]); const regex = new RegExp(regexes[y], 'i');
const match = asciiScriptSig.match(regex);
if (match !== null) { if (match !== null) {
return pools[i]; return pools[i];
} }