git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 3be5f3f12ef3ed8ddbb930ec9ce328ea4e9db64d

Files: 3be5f3f12ef3ed8ddbb930ec9ce328ea4e9db64d / fakeBlockChain.js

252 bytesRaw
1const utils = require('ethereumjs-util')
2
3module.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