|
@ -2,6 +2,7 @@ var baddress = require('./address') |
|
|
var bcrypto = require('./crypto') |
|
|
var bcrypto = require('./crypto') |
|
|
var bscript = require('./script') |
|
|
var bscript = require('./script') |
|
|
var bufferEquals = require('buffer-equals') |
|
|
var bufferEquals = require('buffer-equals') |
|
|
|
|
|
var bufferReverse = require('buffer-reverse') |
|
|
var networks = require('./networks') |
|
|
var networks = require('./networks') |
|
|
var ops = require('./opcodes') |
|
|
var ops = require('./opcodes') |
|
|
var typeforce = require('typeforce') |
|
|
var typeforce = require('typeforce') |
|
@ -198,7 +199,7 @@ TransactionBuilder.prototype.addInput = function (txHash, vout, sequence, prevOu |
|
|
// is it a hex string?
|
|
|
// is it a hex string?
|
|
|
if (typeof txHash === 'string') { |
|
|
if (typeof txHash === 'string') { |
|
|
// transaction hashs's are displayed in reverse order, un-reverse it
|
|
|
// transaction hashs's are displayed in reverse order, un-reverse it
|
|
|
txHash = [].reverse.call(new Buffer(txHash, 'hex')) |
|
|
txHash = bufferReverse(new Buffer(txHash, 'hex')) |
|
|
|
|
|
|
|
|
// is it a Transaction object?
|
|
|
// is it a Transaction object?
|
|
|
} else if (txHash instanceof Transaction) { |
|
|
} else if (txHash instanceof Transaction) { |
|
|