Files: cd54c9d2a59c3fbfe2477fd39f5493ec90eebb6b / fakeBlockChain.js
252 bytesRaw
1 | const utils = require('ethereumjs-util') |
2 | |
3 | module.exports = { |
4 | getBlock: (n) => { |
5 | const hash = utils.sha3(new Buffer(utils.bufferToInt(n).toString())) |
6 | const block = { |
7 | hash: () => { |
8 | return hash |
9 | } |
10 | } |
11 | return block |
12 | } |
13 | } |
14 |
Built with git-ssb-web