block: rename verifyPow to checkProofOfWork
This commit is contained in:
parent
92b446f6a5
commit
e4ba88e54f
2 changed files with 3 additions and 3 deletions
src
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue