use buffer-reverse

This commit is contained in:
Daniel Cousens 2015-09-25 17:38:48 +10:00
parent 28372f0cd7
commit 731a31ecba
9 changed files with 17 additions and 30 deletions

View file

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