use buffer-reverse
This commit is contained in:
parent
28372f0cd7
commit
731a31ecba
9 changed files with 17 additions and 30 deletions
src
|
@ -1,5 +1,6 @@
|
|||
var bufferutils = require('./bufferutils')
|
||||
var bcrypto = require('./crypto')
|
||||
var bufferReverse = require('buffer-reverse')
|
||||
|
||||
var Transaction = require('./transaction')
|
||||
|
||||
|
@ -70,7 +71,7 @@ Block.prototype.getHash = function () {
|
|||
}
|
||||
|
||||
Block.prototype.getId = function () {
|
||||
return bufferutils.reverse(this.getHash()).toString('hex')
|
||||
return bufferReverse(this.getHash()).toString('hex')
|
||||
}
|
||||
|
||||
Block.prototype.getUTCDate = function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue