Transaction: remove .outpoint object
This commit is contained in:
parent
569e0d4ff1
commit
c0e5393595
5 changed files with 31 additions and 32 deletions
src
|
@ -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]
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue