Refactor blocks.ts and index 10k block headers at launch

This commit is contained in:
nymkappa
2022-01-05 15:41:14 +09:00
parent 1b5ef17b1f
commit 4646cc6df3
7 changed files with 275 additions and 47 deletions

View File

@@ -44,6 +44,14 @@ class TransactionUtils {
}
return transactionExtended;
}
public hex2ascii(hex: string) {
let str = '';
for (let i = 0; i < hex.length; i += 2) {
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16));
}
return str;
}
}
export default new TransactionUtils();