Files: dad20bcd931c58c818df618d3d2a5807bdea36f8 / testEnvironment.js
250 bytesRaw
1 | const Environment = require('./environment.js') |
2 | const fakeBlockchain = require('./fakeBlockChain') |
3 | |
4 | module.exports = class TestEnvironment extends Environment { |
5 | |
6 | async getBlockHash (height) { |
7 | return fakeBlockchain.getBlock(height).hash() |
8 | } |
9 | } |
10 |
Built with git-ssb-web