block: add Block.prototype.verifyPow
This commit is contained in:
parent
15227d39bf
commit
26ccb43047
2 changed files with 25 additions and 0 deletions
test
|
@ -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)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue