remove use of buffer-reverse
This commit is contained in:
parent
65c7940f31
commit
5c1c4589c0
6 changed files with 7 additions and 13 deletions
test/integration
|
@ -5,7 +5,6 @@ var async = require('async')
|
|||
var bigi = require('bigi')
|
||||
var bitcoin = require('../../')
|
||||
var blockchain = require('./_blockchain')
|
||||
var bufferReverse = require('buffer-reverse')
|
||||
var crypto = require('crypto')
|
||||
|
||||
var ecurve = require('ecurve')
|
||||
|
@ -135,7 +134,7 @@ describe('bitcoinjs-lib (crypto)', function () {
|
|||
|
||||
assert(bitcoin.script.isPubKeyHashInput(scriptChunks), 'Expected pubKeyHash script')
|
||||
|
||||
var prevOutTxId = bufferReverse(transaction.ins[input.vout].hash).toString('hex')
|
||||
var prevOutTxId = Array.prototype.reverse.call(new Buffer(transaction.ins[input.vout].hash)).toString('hex')
|
||||
var prevVout = transaction.ins[input.vout].index
|
||||
|
||||
tasks.push(function (callback) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue