Files: 48df42c8ab634c0d9fc7597e52106352878124fa / runBlock.js
293 bytesRaw
1 | // run block; the block message handler:w |
2 | const Environment = require('./environment') |
3 | |
4 | module.exports = class runBlock { |
5 | constuctor (block, environment = new Environment()) { |
6 | // verify block then run each tx |
7 | block.tx.forEach((tx) => { |
8 | this.runTx(tx, environment) |
9 | }) |
10 | } |
11 | } |
12 |
Built with git-ssb-web