remove use of buffer-reverse

This commit is contained in:
Daniel Cousens 2015-09-27 23:30:06 +10:00
parent 65c7940f31
commit 5c1c4589c0
6 changed files with 7 additions and 13 deletions

View file

@ -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 () {