Store hex in coinbase raw - Improve scripsig parsing

This commit is contained in:
nymkappa committed 2022-03-16 12:10:18 +01:00
1 parent 94dbec46cf
commit ffb5db69a8
6 files changed
+8 -23

No files matched your search

@@ -19,7 +19,7 @@ export class Hex2asciiPipe implements PipeTransform {
for (let i = 0; i < hex.length; i += 2) {
bytes.push(parseInt(hex.substr(i, 2), 16));
}
return new TextDecoder('utf8').decode(Uint8Array.from(bytes));
return new TextDecoder('utf8').decode(Uint8Array.from(bytes)).replace(/\uFFFD/g, '').replace(/\\0/g, '');
}
}