Transaction: remove .outpoint object

This commit is contained in:
Daniel Cousens 2014-06-16 14:08:43 +10:00
parent 569e0d4ff1
commit c0e5393595
5 changed files with 31 additions and 32 deletions

View file

@ -170,14 +170,12 @@ function Wallet(seed, network) {
})
tx.ins.forEach(function(txIn) {
var op = txIn.outpoint
// copy and convert to big-endian hex
var txinHash = new Buffer(op.hash)
Array.prototype.reverse.call(txinHash)
txinHash = txinHash.toString('hex')
var txinId = new Buffer(txIn.hash)
Array.prototype.reverse.call(txinId)
txinId = txinId.toString('hex')
var output = txinHash + ':' + op.index
var output = txinId + ':' + txIn.index
if(me.outputs[output]) delete me.outputs[output]
})