Store hex in coinbase raw - Improve scripsig parsing

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

View File

@@ -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, '');
}
}