diff --git a/src/block.js b/src/block.js index e34421c..4e10e84 100644 --- a/src/block.js +++ b/src/block.js @@ -132,7 +132,7 @@ Block.calculateTarget = function (bits) { return target } -Block.prototype.verifyPow = function () { +Block.prototype.checkProofOfWork = function () { var hash = [].reverse.call(this.getHash()) var target = Block.calculateTarget(this.bits) diff --git a/test/block.js b/test/block.js index 9a5b962..7dd653f 100644 --- a/test/block.js +++ b/test/block.js @@ -97,7 +97,7 @@ describe('Block', function () { }) }) - describe('verifyPow', function () { + describe('checkProofOfWork', function () { fixtures.valid.forEach(function (f) { var block @@ -106,7 +106,7 @@ describe('Block', function () { }) it('returns ' + f.valid + ' for ' + f.id, function () { - assert.strictEqual(block.verifyPow(), f.valid) + assert.strictEqual(block.checkProofOfWork(), f.valid) }) }) })