Commit 75c73cf778a32316679e669b47a9b5ce085b8587
Blockhash is 256 bits
Alex Beregszaszi committed on 8/3/2016, 7:34:48 PMParent: 0c79dfe47f09117aac1561665a4c2933c4cc17d7
Files changed
interface.js | changed |
interface.js | ||
---|---|---|
@@ -226,9 +226,9 @@ | ||
226 | 226 | * @param {integer} offset the offset to load the hash into |
227 | 227 | */ |
228 | 228 | blockHash (number, offset) { |
229 | 229 | const hash = this.environment.getBlockHash(number) |
230 | - const memory = new Uint8Array(this.module.exports.memory, offset, constants.ADD_SIZE_BYTES) | |
230 | + const memory = new Uint8Array(this.module.exports.memory, offset, 32) | |
231 | 231 | memory.set(hash) |
232 | 232 | } |
233 | 233 | |
234 | 234 | /** |
Built with git-ssb-web