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