Store hex in coinbase raw - Improve scripsig parsing
This commit is contained in:
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, '');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user