block: add Block.prototype.verifyPow

This commit is contained in:
Daniel Cousens 2015-12-08 18:51:35 +11:00
parent 15227d39bf
commit 26ccb43047
2 changed files with 25 additions and 0 deletions

View file

@ -87,4 +87,18 @@ describe('Block', function () {
})
})
})
describe('verifyPow', function () {
fixtures.valid.forEach(function (f) {
var block
beforeEach(function () {
block = Block.fromHex(f.hex)
})
it('returns ' + f.valid + ' for ' + f.id, function () {
assert.strictEqual(block.verifyPow(), f.valid)
})
})
})
})